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

Thread: GeoIP doesn't seem to be working?

  1. #11
    xrvel's Avatar
    xrvel is offline Newbie Net Builder
    Join Date
    Mar 2009
    Location
    Xrvel.com
    Posts
    37
    Blog Entries
    1
    Thanks
    19
    Thanked 19 Times in 8 Posts
    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
    Zash's Avatar
    Zash is offline WiredStorm.com - Lightning Fast Web Hosting
    Join Date
    Feb 2009
    Location
    New York, USA
    Posts
    1,137
    Blog Entries
    1
    Thanks
    64
    Thanked 121 Times in 93 Posts
    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
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    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, 14: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, 04:15 AM
  4. Ice cream that doesn't melt?
    By m42 in forum General Chat
    Replies: 3
    Last Post: 14 June, 2009, 05:38 AM
  5. How to use GeoIP on glype ?
    By WebEvader in forum Web Proxies
    Replies: 6
    Last Post: 15 March, 2009, 19: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
  •