This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Block proxy mulitple
Author
Message |
subzip
Newbie


Joined: 18 November 2008
Location: Denmark
Posts: 4
Posted: 26 October 2011 at 7:43am

Hi!

Would this do any good, if I want to block proxyreguest to site?
I tried, but with no succes.

Thanks.


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]




Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 27 October 2011 at 4:35am

Hello,

The idea is correct, but this doesn't mean the proxy request is always followed by this variables.
You may also try RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR] as an option.
Rewrite.log for the testing request would be great to analyze the issue.

there's also software called Fiddler that may catch the request and show its headers.


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version