Forum Moderators: open

Message Too Old, No Replies

IP Dependent Page Loading

         

pcodiv2

3:58 pm on Apr 22, 2008 (gmt 0)

10+ Year Member



Is there a script for IP dependent page load. We currently are using iFrames in some areas (an SEO no no, i know, but it works) so would it be possible for a specific page to load in it depending on the IP and if it's not one on the list or w/e a default would load?

Thanks in advance.

Marshall

5:38 pm on Apr 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you are able to use either .asp or .php, and possibly in limited use Javascript, you could put in an conditional statement. Using .asp as an example:

<%
Select Case Request.ServerVariables("remote_addr")
Case "193.189.74.23", "69.57.138.13"
Response.Redirect "http://www.widgets.com/page_4.html"
End Select
%>

This would be in the head of the page that is framed.

Marshall