Click to See Complete Forum and Search --> : ssi to asp help


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>

jakykong
08-08-2003, 04:15 PM
thanks. well, i tried replacing the original line of code with that one, and i ran into a problem. i tired the .asp extention and the .htm extention, but niether proved to work. i keep getting an error message saying 'page not found', yet i know the page is there. do you have any idea why it might not be working?

jakykong
08-09-2003, 03:34 AM
i'm not specifying a path. i click the file in the online file mngr and click view. 100% accurate spelling and caps, and faster, so with correct spelling and caps, it still is like the page is not there. i think it is just my modem being crappy(like usual).

jakykong
08-09-2003, 05:34 PM
it is the file manager built into brinkster's member page. it is how i have access to the files on my website. all it is is a list of files and buttons on the site with contolls.

jakykong
08-10-2003, 06:07 PM
i open the window to that page directly. there are no frames, i get the error in the entire window.

jakykong
08-11-2003, 01:58 AM
okay. the url is http://jakykong.net.tf/ipaddress.asp that is using the redirective domain. the url directly from my site is http://www28.brinkster.com/jakykong/ipaddress.asp. niether works from where i am sitting.

jakykong
08-11-2003, 11:15 AM
thanks. i'll update the line of code, then i'll get it to where it is supposed to go.