so there is this guy spamming my phpBB2 forum since he's banned. He keeps coming back with proxies, and I would like to block them using my htaccess. My forum is located at http://www.site.com/forum/ I put a .htaccess file in /forum/, which contains the following, as found somewhere on the net:
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
I heard this is pretty accurate. So I tried, and the web proxy was unable to reach the page. But it worked like 5 minutes, and now it's not blocking anything... I tried different proxies, web based or not, and nothing was blocked... I'm wondering if I did anything wrong, the htaccess looks correct to me !
If you guys have an idea, that would be awesome. I always find my answers on Stackoverflow, so I thought I should ask here :P
Cheers