Block Proxy Servers using .htaccess
Hello Friends !!
We all know about spamming.
In my last post we can block IP address using .HTACCESS. But suppose proxy server used for spamming then what will you do ? In using proxy server, every time IP address changed.
Generally hackers are also use proxy servers to hack the site.
Don’t worry about this. I found some code of .HTACCESS which blocks proxy servers to access your site.
How to Block Proxy Servers
This code help you to block proxy servers to access your site.
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]
You have to simply copy this code into your site’s root htaccess file.
Upload to your server, and test it. If any problem then comment me.
Original article by Perishable Press: http://perishablepress.com/press/2008/04/20/how-to-block-proxy-servers-via-htaccess/
Thanks….
-
Butters
-
Butters
-
Adam
-
Adam
-
Peter Vander
-
Peter Vander
-
http://www.teratips.com/block-proxy-servers-htaccess/ How to Block Proxy Servers using .htaccess | Blogging Tips by TeraTips.com
-
NettiCat
-
http://http//netticat.ath.cx NettiCat
-
James
-
James
-
http://www.delonix.com.au/ delonix
-
http://www.delonix.com.au delonix
-
http://www.blockthatproxy.com/ BlockThatProxy.com
-
http://www.blockthatproxy.com BlockThatProxy.com
-
liliag
-
http://www.v7n.com/forums/coding-forum/233763-how-stop-proxy-servers.html#post1587303 How to stop proxy servers ? – Webmaster Forum
-
http://twitter.com/pileofcrap Billy Engler
-
Jomardyan




