jakykong
08-07-2003, 06:21 AM
in response to the request in the javascript source's ip address filter(under user details), asking for a workaround for internet explorer, i've been working with that script and the one above it, ip address, merging them together to try to make an all-browser script. so far, i know that the line of code,
var ip = "<!--#echo var="REMOTE_ADDR"-->"
should obtain the ip address for IE and netscape(works at the javascript source). this was what i had hoped to implement in the process of merging the two scripts to make one. adamgundry pointed me here saying that this line of code was a server side include(if i remember correctly). brinkster's server is not apparently equipped with that capability. if anyone knows what the equivalent would be in asp(brinkster has that), to do the same as in the script below, any and all help is greatly appreciated. thanks all who can help.
<SCRIPT LANGUAGE="JavaScript">
var ip = "<!--#echo var="REMOTE_ADDR"-->"
if (ip.indexOf("12.211") >= -1)
// This would block anyone from 207.136.xxx.xxx
{
alert("You are not permitted to access this site.");
history.go(-1);
}
// End -->
</script>
var ip = "<!--#echo var="REMOTE_ADDR"-->"
should obtain the ip address for IE and netscape(works at the javascript source). this was what i had hoped to implement in the process of merging the two scripts to make one. adamgundry pointed me here saying that this line of code was a server side include(if i remember correctly). brinkster's server is not apparently equipped with that capability. if anyone knows what the equivalent would be in asp(brinkster has that), to do the same as in the script below, any and all help is greatly appreciated. thanks all who can help.
<SCRIPT LANGUAGE="JavaScript">
var ip = "<!--#echo var="REMOTE_ADDR"-->"
if (ip.indexOf("12.211") >= -1)
// This would block anyone from 207.136.xxx.xxx
{
alert("You are not permitted to access this site.");
history.go(-1);
}
// End -->
</script>