Forum Moderators: phranque

Message Too Old, No Replies

Need help to block a specific proxy

         

kanin

12:36 pm on Apr 12, 2010 (gmt 0)

10+ Year Member



Using the "Perishable Press" code in the .htaccess file, but just one specific proxy keeps causing annoyance -

"webp#*$!yserver.net" (ip address 96.31.65.xx)

already tried
deny from 96.31.65.xx
and
RewriteCond %{HTTP_REFERER} webp#*$!yserver\.net [NC,OR]

but they don't work...
your help is appreciated, thanks!

g1smd

1:10 pm on Apr 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do HTTP requests arriving at your site via that proxy come with the X-Forwarded-Via or somesuch named header?

I forget the exact name.

jdMorgan

1:38 pm on Apr 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Two variables you might want to check are

%{HTTP:VIA}
and
%{HTTP:X-FORWARDED-FOR}

However, the "Deny from" should cause those requests to be denied with a 403-Forbidden response regardless of the Via or X-Forwarded-For request headers, assuming that you've got mod_access installed and that you have also set an appropriate "Order" directive before trying to use Allow or Deny.

Jim