SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need code to allow uk only geoip in .htaccess

    Hi, I'm not very experienced with .htaccess except for basic url rewriting.

    Can someone point me to somewhere I can see what code to put in my .htaccess file to restrict visitors only to UK?

    Thanks

  2. #2
    SitePoint Zealot Sogo7's Avatar
    Join Date
    May 2011
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Here you go,
    http://www.countryipblocks.net/count...-allow-format/

    I should point out that all the big search engines like Google, Yahoo and Bing
    are located in the USA so you will need to provide them with exceptions or
    accept the fact you will not be indexed the same way as other sites.

    In addition many of the advertising providers (Adsense,Adbrite,Clicksor etc) are
    also in the USA and will want access to the site if you plan to carry advertising,
    they want see what the content is so they can match up suitable ads.
    Lovelogic.net Personal Projects Pit - Spammers welcome

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2010
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah ok, I added an exception for USA.

    Thanks for the link and the advice, that's gonna come in really handy!


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
  •