Results 1 to 7 of 7

Thread: How to use GeoIP on glype ?

  1. How to use GeoIP on glype ?

    Hi,

    I have been trying to find out how to use GeoIP with glype to no success. Please could someone show me where I can find a guide etc ... as alot of proxy owners are using it at the moment I think

  2. Have you tried Xrvel's Country IP Blocking tutorial?
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  3. #3
    $country = $_SERVER["GEOIP_COUNTRY_CODE"];
    if (($country == "CN") or ($country == "RU") or ($country == "IR")) {
    header ('Location: http://google.com');
    }
    throw that little code at the top of browse.php
    mind you, thats with geoip installed already.

  4. #4
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Thanks Will for that link..i use downloaded .htacess from blockacountry but i couldn't see any fruitful results..a lot of BW drainage by Iran and Saudi. I hope this one is good.

  5. Thanks for the replies.

    Do you know if there is any other way in which I can redirect traffic ?

  6. #6
    Thats what i am trying to figure out now how i can redirect traffic ??

    any ideas?

  7. #7
    Here's what I do on all my sites:

    GeoIPEnable On
    GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

    # Redirect one country
    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR)$
    RewriteRule ^(.*)$ ilron proxy [L]


    Put that in the apache config, or .htaccess

    That will send all your traffic from CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR to my proxy site ilron.com (change this)

    Also, modify the GeoIPDBFile location to where it actually is

Similar Threads

  1. Google's GeoIP detection massively screwed up
    By Mike-XS in forum Web Proxies
    Replies: 12
    Last Post: 6 April, 2011, 22:12 PM
  2. [Free] FREE PHP GeoIP Country Redirect
    By crivion in forum Scripts
    Replies: 2
    Last Post: 15 March, 2010, 18:56 PM
  3. GeoIP Globally
    By nux in forum Web Hosting
    Replies: 2
    Last Post: 28 October, 2009, 13:33 PM
  4. GeoIP tutorial - block countries..etc
    By Keldorn in forum Programming
    Replies: 0
    Last Post: 22 September, 2009, 08:58 AM
  5. GeoIP doesn't seem to be working?
    By Zash in forum Web Proxies
    Replies: 12
    Last Post: 25 July, 2009, 21:54 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
  •