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

Block Website Access by Country, Without Htaccess

Discussion in 'BlackHat Lounge' started by The Scarlet Pimp, Nov 5, 2012.

  1. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,129
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    Block Website Access by Country, Without Htaccess

    if you need to block geographical regions due to spammers, hackers, etc. but find
    that htaccess files are too much trouble to maintain, then this may help.

    it places very little load on your server, while letting you restrict access by country, or continent.
    the country database updates come out monthly in zip format.

    you probably won't want to install this on every web page, just on the pages that
    have feedback forms so that you don't get spam posts.

    i tested it on a web site and on a wordpress blog and it effectively blocked hits from overseas areas.

    blocker script:
    http://azuliadesigns.com/block-website-access-country/

    country database (updated monthly):
    http://www.phptutorial.info/iptocountry/the_script.html
     
    • Thanks Thanks x 1