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 Senior Member

    Apr 2, 2008
    Likes Received:
    Chair moistener.
    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:

    country database (updated monthly):
    • Thanks Thanks x 1