Country block

Discussion in 'Programming' started by qwerty00, Sep 7, 2006.

  1. #1
    How can block certain country - ex. Bulgaria?

    Thanks
     
    qwerty00, Sep 7, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    It will never be a perfect solution (becuase people can be behind proxies and hide their IP) - but you generally match IP addresses with locations in the world people are.
     
    ccoonen, Sep 7, 2006 IP
  3. wildcard

    wildcard Active Member

    Messages:
    58
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    98
    #3
    Hi,

    A fast and simple solution is to block visitors from Bulgaria, or any other country in that matter is to use an .htaccess file to block traffic from this country. The site located at blockacountry.com can help you with this last procedure. Simply select which countries you want to block, in your case only Bulgaria, press the okay button and the website creates an .htaccess document for you. Upload this file to your server and your annoying spam visitors should be history.

    Wildcard
     
    wildcard, Jul 7, 2007 IP
  4. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no, even they want to hide their IP, ARIN or whatever provider will still have their original IP address... so i guess you can research with those IP assigner lol..
     
    ProgrammersTalk, Jul 8, 2007 IP
  5. kazanova_ks

    kazanova_ks Active Member

    Messages:
    99
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #5
    you can and block with this script just go here http://www.phpscripts.9hz.com yuo have a lots a scripts but you download rar file named Banip.rar
     
    kazanova_ks, Jul 13, 2007 IP