Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2220

[3.3.x] Support Forum • Geo blocking via .htaccess

$
0
0
I think most of us have gained experience with bots from several countries.

In my case, especially bots from Singapore are tracking my site almost every single day.

How can I block them permanently from accessing the phpBB?

Is it enough to put the following code in the .htaccess file?

Code:

<IfModule mod_rewrite.c>RewriteEngine OnRewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^SG$RewriteRule .* - [F,L]</IfModule>

Statistics: Posted by Thunder86 — Mon Jul 01, 2024 10:06 am



Viewing all articles
Browse latest Browse all 2220

Trending Articles