Re: Deny certain words

2014-09-03 Thread Grozdan
On Wed, Sep 3, 2014 at 5:13 PM, Grozdan wrote: > On Wed, Sep 3, 2014 at 5:07 PM, Steve Wilson > wrote: >> 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 4

Re: Deny certain words

2014-09-03 Thread Grozdan
On Wed, Sep 3, 2014 at 5:07 PM, Steve Wilson wrote: > 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. Yes, it's the only site. I will try

Re: Deny certain words

2014-09-03 Thread Steve Wilson
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 whi

Re: Deny certain words

2014-09-03 Thread Steve Wilson
On 02/09/2014 17:38, Grozdan wrote: On Tue, Sep 2, 2014 at 3:09 PM, Maxim Dounin wrote: Hello! On Tue, Sep 02, 2014 at 12:17:12PM +0100, Steve Wilson wrote: Torrent clients have their own user agent normally, I had a need a while back to block some which we used the magic 444 to kill it. i

Re: Deny certain words

2014-09-02 Thread Grozdan
On Tue, Sep 2, 2014 at 3:09 PM, Maxim Dounin wrote: > Hello! > > On Tue, Sep 02, 2014 at 12:17:12PM +0100, Steve Wilson wrote: > >> Torrent clients have their own user agent normally, I had a need a while >> back to block some which we used the magic 444 to kill it. >> >> if ($http_user_agent ~* (

Re: Deny certain words

2014-09-02 Thread Maxim Dounin
Hello! On Tue, Sep 02, 2014 at 12:17:12PM +0100, Steve Wilson wrote: > Torrent clients have their own user agent normally, I had a need a while > back to block some which we used the magic 444 to kill it. > > if ($http_user_agent ~* (uTorrent|Transmission) ) { > return 444; > break; > } Just

Re: Deny certain words

2014-09-02 Thread Grozdan
On Tue, Sep 2, 2014 at 1:17 PM, Steve Wilson wrote: > Torrent clients have their own user agent normally, I had a need a while > back to block some which we used the magic 444 to kill it. > > if ($http_user_agent ~* (uTorrent|Transmission) ) { > return 444; > break; > > } Thanks. That seems to

Re: Deny certain words

2014-09-02 Thread Steve Wilson
Torrent clients have their own user agent normally, I had a need a while back to block some which we used the magic 444 to kill it. if ($http_user_agent ~* (uTorrent|Transmission) ) { return 444; break; } On 02/09/2014 12:08, Grozdan wrote: Hi, Somehow my server gets hit by torrent requests

Deny certain words

2014-09-02 Thread Grozdan
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 inclu