.htaccess Block Proxy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    .htaccess Block Proxy

    im use this for block proxy sever access my wap...

    Code:
    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]

    this is not operation who can help me?

    #2
    it wont protect against all proxy servers just the majority of them :P
    proxies using unlisted methods above will not be blocked.
    This just saves having to write out millions of proxy servers int your .htaccess

    Comment


      #3
      RewriteCond %{HTTP:FORWARDED} !^$ [OR] will ban most mobiles aswell lol

      Comment


        #4
        Originally posted by something else View Post
        RewriteCond %{HTTP:FORWARDED} !^$ [OR] will ban most mobiles aswell lol
        right, blocking VIA, FORWARDED and X_FORWARDED_FOR is bad idea. not only ban mobile users, PC user maybe also blocked.
        some ISP have set of VIA or X_FORWARDED_FOR

        but that is your choice, you may ban VIA and X_FORWARDED_FOR, and you will lose some visitors

        Comment

        Working...
        X