1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GEO IP Redirector Script needed

Discussion in 'Black Hat SEO' started by eestisiin, Jan 24, 2009.

  1. eestisiin

    eestisiin Regular Member

    Joined:
    Oct 8, 2007
    Messages:
    326
    Likes Received:
    156
    Hy, Im in need of a script which would look at person Ip and if it is from country a then will redirect to link A and if its not then it would redirect to link other

    Its fairly easy, but since I have no programming skills, then I cant write this up my self :)

    Thank You
     
  2. El-Plaga

    El-Plaga Regular Member

    Joined:
    May 3, 2007
    Messages:
    218
    Likes Received:
    28
    Here you go, i used it for a while, works get, might be a better one out there but this will work well for you.

    Code:
    http://www.mediafire.com/?sharekey=98303b7b91bda678111096d429abd360e04e75f6e8ebb871
     
    • Thanks Thanks x 1
  3. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    I posted a solution a while back where you can redirect any country to any url using the maxmind geo db.

    Here is the post:
    http://www.blackhatworld.com/blackh...ne-code-me-php-geo-targetting.html#post410382

    Hope that helps
     
  4. eestisiin

    eestisiin Regular Member

    Joined:
    Oct 8, 2007
    Messages:
    326
    Likes Received:
    156

    It worked rather well :) I ll stick to this for a while and if needed ill try the other one :)
     
  5. q3ick

    q3ick Regular Member

    Joined:
    Oct 27, 2008
    Messages:
    414
    Likes Received:
    115
    Occupation:
    Full Time Student -- Working On My Masters In Busi
    Location:
    Places
    Home Page:
    Or search the forum for "GUMP"
     
  6. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,290
    Yes, I've used this as well and it does work well.

    One thing to keep in mind is that you will not have any updates with this solution. Using maxmind you will get a free binary db file on the 1st of each month for greater accuracy as time progresses. I've chosen maxmind for this reason alone and basically pull the file each month to have all the fresh data. All without a database.