jakykong
08-07-2003, 04:13 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. what i have posted below is what i am at right now, placed in the head of the document, i am unshure why it does not work. Any and all help is greatly apreciated, and i think it may just be brinkster's server, but i am posting here to make shure. Thanks to 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. what i have posted below is what i am at right now, placed in the head of the document, i am unshure why it does not work. Any and all help is greatly apreciated, and i think it may just be brinkster's server, but i am posting here to make shure. Thanks to 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>