I wrote .htaccess code 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.
0 comments:
Post a Comment