Forum Moderators: phranque
The upper code is based on requests that would have any of those strings as part of requested URL. The 404 would look like this:
61.x.x.x tried to load http://proxyjudge1.proxyfire.nethttp://proxyjudge1.proxyfire.net/fastenvi
I see it as invalid request, plus proxy, enough to figure that something is going on, so I want to issue 403.
And I do it in the form of the upper code, yet, I still get 404s on same requests.
What am I doing wrong?
Thanks
[edited by: jdMorgan at 1:54 am (utc) on June 8, 2009]
[edit reason] De-linked [/edit]
# BLOCK attempts to use our server as a proxy
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /?http:// [NC]
RewriteCond %{THE_REQUEST} !^[A-Z]+\ /?http://([^.:/#?\ ]+\.)*example\.com\.?(:[0-9]*)? [NC]
RewriteRule ^ - [F]
This will then allow a legitimate request such as
GET http://www.example.com/foo.html HTTP/1.1
GET http://www.some-other-site/foo.html HTTP/1.1
Jim
[edited by: jdMorgan at 2:06 am (utc) on June 8, 2009]