Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: GeoIP doesn't seem to be working?

  1. #11
    Or what if you use htaccess + geoip?
    I guess because the geoip is run by the proxy hosting, the hosting should update it regularly.
    No need to update the geoip database by ourselves.
    Code:
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AF$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AO$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^KE$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IQ$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IR$ [NC]
    RewriteRule ^(.*)$ http://www.google.com [NC,R,L]

  2. #12
    Join Date
    Feb 2009
    Location
    New York, USA
    Posts
    1,137
    How would you set that up if you were a web host?
    WiredStorm Hosting Solutions
    █ Lightning Fast Shared and Reseller Hosting
    █ cPanel with Softaculous and 24/7 Email (Ticket) Support
    Biodegradable Sunscreen - Unblock Facebook

  3. #13
    Quote Originally Posted by Killswitch View Post
    It's more than just GeoIP, he has other features like local places, so you can do a lot more.
    It's just using GeoLiteCity then also, which we can use too. It clearly states on his webste that the service uses the maxmind databases for it's geolocation. But yeah, it is a nice servive he runs. I just prefer doing it myself is all

    Quote Originally Posted by xrvel View Post
    Or what if you use htaccess + geoip?
    I guess because the geoip is run by the proxy hosting, the hosting should update it regularly.
    No need to update the geoip database by ourselves.
    Code:
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AF$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AO$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^KE$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IQ$ [NC,OR]
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IR$ [NC]
    RewriteRule ^(.*)$ http://www.google.com [NC,R,L]
    You can actually make it easier than that, they allow multi-country on one line :

    Code:
    GeoIPEnable On
    GeoIPDBFile /path/to/GeoIP.dat
    
    # Redirect multiple countries to a single page
    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(AF|AO|CN|KE|IQ|IR)$
    RewriteRule ^(.*)$ http://www.wherever.com$1 [L]
    Quote Originally Posted by Zash View Post
    How would you set that up if you were a web host?
    Just install the maxmind apache module mod_geoip.

    MaxMind - GeoIP Apache API

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Xanga Doesn't Convert Well
    By gavenecko in forum Social Networks
    Replies: 0
    Last Post: 17 December, 2009, 22:13 PM
  2. GeoIP Globally
    By nux in forum Web Hosting
    Replies: 2
    Last Post: 28 October, 2009, 13:33 PM
  3. atproxy.net doesn't support co.cc domains
    By Greyhound in forum Proxy List Support Forum
    Replies: 2
    Last Post: 21 June, 2009, 03:15 AM
  4. Ice cream that doesn't melt?
    By m42 in forum General Chat
    Replies: 3
    Last Post: 14 June, 2009, 04:38 AM
  5. How to use GeoIP on glype ?
    By WebEvader in forum Web Proxies
    Replies: 6
    Last Post: 15 March, 2009, 18:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •