[htaccess] Block Proxy users/servers from accessing your Site

 this is a simple Htaccess code , which i was using to block proxy users.

here is the code .

Code:
# Block Proxy users/servers from accessing  your Site.
# H4x0rL1f3 |  M4DSh4k | 1337 | www.MaDLeets.com

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'm not going to explain this code , as i assume its not needed , 
but still if anyone what to ask , you can reply here.
i would love to reply.


usage :

simply make a new .htacces in your public_html folder 
and copy paste the above code in it.

Penulis : Anon Cop ~ Blog is bassically for giving maximum knowledge of hacking to provide security.

Latest Article [htaccess] Block Proxy users/servers from accessing your Site is published by Anon Cop on Thursday, 8 November 2012. i think this article will be helpfull if so dont forget to thanks in comments already have 0 Comments: in this post [htaccess] Block Proxy users/servers from accessing your Site
 

0 comments:

Post a Comment