You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sa...@seagate.com on 2002/11/06 19:45:13 UTC

[users@httpd] Redirection based on client IP address

Hi All,

I am planning to use mod_rewrite for re-directing based on the client IP
address. However I would like to store the IP address mapping information
in a mySQL database. e.g.

if the IP address is             then re-direct to
219.213.*.*              http://www.ccc.de
145.178.*.*                                http://www.ccc.au
198.165.*.*                                http://www.ccc.ru

I read that mod_rewrite can access a external database to get direction
information. But I am not sure how to do it. If mySQL database is not
possible, even a flat file DB will suffice.

Any good URLs with this info?

Thanks
Saqib Ali


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org