Deny certain words
Steve Wilson
lists-nginx at swsystem.co.uk
Wed Sep 3 15:07:28 UTC 2014
I've just thought of another angle for this. Is this hitting your
default/only site? If it's got a host header you could create a site
just for that that bins all requests off with a 444 and no logging.
On 02/09/2014 12:08, Grozdan wrote:
> Hi,
>
> Somehow my server gets hit by torrent requests which look like this:
>
> GET /?info_hash=.....
>
> after the = come long strings of seemingly random hashes torrent
> clients are looking for.
>
> I'd like to deny all such requests so would like if someone could
> provide me how to deny everything (and including) ?info_hash=
>
> I've looked all over the net at similar examples but all I tried thus
> far didn't work
>
> Thanks :)
More information about the nginx
mailing list