View Single Post
Old 07-18-2004, 12:43 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally posted by http
What do you mean with apache method


I mean redirects based on surfers IP. The IP needs to be looked up in a table holding all ISP's and their IP allocations.

I don't think apache alone can do this. You may confuse geo-location with apache's built in accepted browser language lookup? That doesn't even come close to the accuracy I need.




Oh and I just came across another BS patent. Meanwhile, geo-locating has been patented too, to these folks http://www.digitalenvoy.net

They are currently suing google over this




just install mod_geoip

use it with mod_rewrite

GeoIPEnable On
GeoIPDBFile /home/blah/GeoIP.dat
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^JP$
RewriteRule ^(.*)$ http://www.japan.com [L]

that will route all .jp traffic to japan.com

simple
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote