Forum Moderators: open

Message Too Old, No Replies

Javascript redirect incoming ip

I need a Javascript to redirect incoming ips to my site.

         

meskey

8:03 pm on May 19, 2005 (gmt 0)

10+ Year Member



I need a Javascript to redirect incoming ips to my site. Any help would be greatly appreciated.

RonPK

10:03 am on May 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure what you mean, but Javascript cannot detect IP numbers. You'll need some sort of server side script for that.

meskey

1:33 pm on May 21, 2005 (gmt 0)

10+ Year Member



Well. My problem is that the hosting solution that I am using, MonsterCommerce, is an asp platform, but they don't allow asp scripts on their server due to security reasons. They also don't allow perl/php/cgi ....so I am very limited in how I can redirect incomming traffic by IP address. I thought that it could be done with javascript.

RonPK

7:15 am on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In that case, the only option left seems to be SSI (Server Side Includes) - if supported by your host. SSI can detect the users IP address, and spit out a meta refresh tag.