How can i block a country from viewing a website?

Discussion in 'General Business' started by fuzzbuzz, Nov 25, 2009.

  1. #1
    How can i block a country from viewing a website?

    I want to block some countries from viewing the site.
    I have seen i can do this from htaccess? Is this the best way?
    There is a website called blockacountry.com which generates the htaccess code depending on the countries you put in.

    Has anyone tried blockacountry? Any alternatives out there?

    Thanks

    Fuzz
     
    fuzzbuzz, Nov 25, 2009 IP
  2. Sake7

    Sake7 Well-Known Member

    Messages:
    1,098
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    110
    #2
    You can block a country if you know the IPs used by users from there.
     
    Sake7, Nov 25, 2009 IP
  3. fuzzbuzz

    fuzzbuzz Active Member

    Messages:
    315
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Hi Sake,

    Looking at blockacountry.com this does seem to generate the different country ranges. But if this the best solution or is there another?
     
    fuzzbuzz, Nov 25, 2009 IP
  4. mentos

    mentos Prominent Member

    Messages:
    15,280
    Likes Received:
    473
    Best Answers:
    0
    Trophy Points:
    330
    #4
    I use maxmind api, and works great fast and reliable, althogh you need to update frequently
     
    mentos, Nov 25, 2009 IP
  5. bryanon

    bryanon Well-Known Member

    Messages:
    806
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    145
    #5
    I second for maxmind - has served me well for a while already.
     
    bryanon, Nov 26, 2009 IP
  6. fuzzbuzz

    fuzzbuzz Active Member

    Messages:
    315
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Hi,


    Just had a look at maxmind. Which service do i need? Does this work via htaccess? Will it slow the site loading?
     
    fuzzbuzz, Nov 26, 2009 IP