Blocking certain countries from accessing my site

Discussion in 'Site & Server Administration' started by creepah, Dec 14, 2005.

  1. #1
    How do i block these countries from accessing my website

    Saudi Arabia
    Iran
    Kuwait

    ?
     
    creepah, Dec 14, 2005 IP
  2. sufyaaan

    sufyaaan Banned

    Messages:
    218
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sufyaaan, Dec 14, 2005 IP
  3. mikejmu

    mikejmu Active Member

    Messages:
    526
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    70
    #3
    why do you want to block certain countries?
     
    mikejmu, Dec 14, 2005 IP
  4. shahab6

    shahab6 Well-Known Member

    Messages:
    2,351
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    138
    #4
    seriously what do you want to block those country, what makes you think that your website is so good that those people want to visit it? I highly doubt that they will visit it, so don't worry. Spend your time and money trying to get people to your website. Also not all people from iran are bad, the governemnt is bad not the people.
     
    shahab6, Dec 14, 2005 IP
  5. creepah

    creepah Peon

    Messages:
    313
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ive put this into my blank .htaccess

    deny from .ir
    deny from .sa
    deny from .kw
    deny from .cn
    deny from .qa
    deny from .om

    Now i should be able to save lots of bw.
     
    creepah, Dec 15, 2005 IP
  6. sufyaaan

    sufyaaan Banned

    Messages:
    218
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Oftentimes, there are valid reasons why a webmaster wants to block certain countries.

    Say you are selling a product / service and you think you might receive orders with fake credit cards info from countries like Nigeria, you have a good reason to block it. That's just my understanding. Anyone else? :D
     
    sufyaaan, Dec 15, 2005 IP
  7. tgotchi

    tgotchi Active Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #7
    You might want to consider IP2Location for accurate results.
     
    tgotchi, Jan 7, 2006 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Actually IP2Location isn't as accurate as it should/could be.

    For example IP2Location bases longitude/latitude on the center point of the city, instead of the location of the zip code (even though they have the zip code data). Which means in large metropolitan cities, the longitude/lattitude can be off by 40 or 50 miles.

    I've corresponded with the IP2Location guys about it, and it sounded like they didn't want to make the change (even though it would be more accurate) because "existing customers wouldn't like the change".

    Well... I'm a licensed owner of the IP2Location database, and I'm most likely going to be switching to a different database provider (one that is accurate to the zip code, instead of just city) because of it.
     
    digitalpoint, Jan 23, 2006 IP