Re: Help with redirect for certain IP's
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Help with redirect for certain IP's

From: Aaron Gray <ang.usenet@gmail.com>
Date: Sun Apr 09 2006 - 03:53:16 CEST

<bryant_j_j@yahoo.com> wrote in message
news:1144543362.904284.196190@u72g2000cwu.googlegroups.com...
> Hi everyone,
>
> Does anybody know how to redirect every visitor to a webpage, except
> those coming from some specified IP addresses, to a different webpage?
> Does anybody know of a JavaScript for this or how to do it?
>
> For example, I want everyone who visits www.someaddress.org/myhomepage
> to be redirected to www.someaddress.org/myhomepage /index2.html, except
> for certain visitors with IP addresses A1.B1.C1.D1, A2.B2.C2.D2, ...
> or from a range of IP addresses such as A1.B1.C1.XXX, where XXX is any
> 3 digits (I do not want these guys to be re-directed) ...
>
> TIA, J.

Best to do that server side, not sure if it can be done client side.

Aaron
Received on Mon May 1 04:51:06 2006