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

URL-shortener based on country

Discussion in 'Black Hat SEO' started by qlithe, Nov 14, 2013.

  1. qlithe

    qlithe Power Member

    Joined:
    Feb 14, 2012
    Messages:
    614
    Likes Received:
    96
    Are there any URL-shortener that can redirect people to different URLs depending on their country?

    Since all but my US traffic can participate in the offer the rest of my traffic will experience it as a "bad" link
     
  2. Bartholomew

    Bartholomew Regular Member

    Joined:
    Dec 31, 2009
    Messages:
    290
    Likes Received:
    103
    Home Page:
    Sorry for shameless self-promotion, but have a look on the script in my sig. It does what you need and much more.
     
  3. akacash

    akacash Jr. VIP Jr. VIP

    Joined:
    Jan 16, 2010
    Messages:
    807
    Likes Received:
    576
    Location:
    The Beach, USA
    What you're looking for is a Geo-IP script. It can probably be done in a number of languages but PHP is the one I've seen the most of. There's a site called Maxmind that could help you quite a bit probably and offers a free database file to use. http://dev.maxmind.com/geoip/ is the link. I actually use the Geo-Lite free version and while it's not 100% accurate, it's pretty damn close. I've been nothing but satisfied with it, especially since it's free. lol. Check out Geo-IP scripts though and you can probably find one already done to go with that, or if you're capable you can write your own. As far as a URL shortener doing it for you, I'm not sure. I can't think of any off the top of my head as they would have to have to then have some sort of interface where you'd be able to plug in a different redirect URL depending on the country that visits it, I can't see anyone offering that for free.
     
    • Thanks Thanks x 1