Its not about spam just want to block a user who uses proxies
<ifModule mod_rewrite.c>
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]
</ifModule>
.htaccess
Code:<ifModule mod_rewrite.c> 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] </ifModule>
this is for anonymous proxies, but for high anonymous proxies there is no solution !![]()
Ah oke well thanks for the code but im not gonna ad it because i dont want to block all users that use proxies only 1
Then in htaccess:
Deny from xxx.xxx.xxx.xxx
If all the collected IP's are in the same D block, i.e. 111.0.0.0 - 111.0.0.255, then use a Cider notation of
Deny from 111.0.0.0/24
But if it a a single user using numerous proxies....
As to Akismet and whatnot, do not believe others that they alone will stop spam. While they may block some public IP's, they do not rely on IP address alone.