Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

Block Proxy Server via .htaccess

Hello Friends,

I was working for a website in which client is getting span emails and he want some solid solution to stop this. We have tried with Blocking IP Address using .htaccess but Hackers were using Proxy server. As a result, IP Address will change every time and previous solution did not work. Finally I wrote .htaccess code again for blocking proxy server. If you want to block proxy server using .htaccess than just write below code in .htaccess file and you rocks.

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]

Block Proxy Server using .htaccess, Block Proxy Server via .htaccess, Block Proxy using .htaccess, .htaccess code for Block Proxy, .htaccess tricks for Proxy Block.

Thank you!

Share:

No Comments Yet.

Leave a Reply

Your email address will not be published.