Quantcast
Channel: Kieran Barnes » Geeky
Viewing all articles
Browse latest Browse all 10

Block Countries in Apache

$
0
0

Assuming you have mod_geoip installed in apache we can block certain countries in 6 lines of code. I had a client who was experiencing an inhumane amount of spam on their phpBB forums, which are notorious for bot attacks. Luckily this forum was geographically specific – so we can block all the countries we aren’t interested in. Here’s the .htaccess code I put in the forums sub-directory # START Block Countries RewriteEngine On.. Read More

The post Block Countries in Apache appeared first on Kieran Barnes.


Viewing all articles
Browse latest Browse all 10

Trending Articles