atom feed16 messages in ru.sysoev.nginxRe: Blocking by user agent if ip does...
FromSent OnAttachments
karabajaMay 31, 2011 11:49 am 
António P. P. AlmeidaMay 31, 2011 12:04 pm 
Alexandr GomoliakoMay 31, 2011 12:18 pm 
Igor SysoevMay 31, 2011 12:34 pm 
Alexandr GomoliakoMay 31, 2011 1:34 pm 
António P. P. AlmeidaMay 31, 2011 2:03 pm 
Alexandr GomoliakoMay 31, 2011 2:27 pm 
karabajaMay 31, 2011 3:00 pm 
António P. P. AlmeidaMay 31, 2011 3:25 pm 
António P. P. AlmeidaMay 31, 2011 3:31 pm 
karabajaMay 31, 2011 3:44 pm 
António P. P. AlmeidaMay 31, 2011 3:57 pm 
Igor SysoevJun 1, 2011 12:24 am 
Igor SysoevJun 1, 2011 12:27 am 
Hari HendaryantoJun 1, 2011 1:41 am 
Igor SysoevJun 1, 2011 1:47 am 
Subject:Re: Blocking by user agent if ip doesn't match
From:karabaja (ngin@nginx.us)
Date:May 31, 2011 3:00:41 pm
List:ru.sysoev.nginx

Thanks everyone for being so helpful. I've ended up applying Igor's suggestion. But I've dropped this line as I wasn't sure what to do with it: "~(?i)(Purebot|Lipperhey|MaMaCaSpEr|libwww-perl|Mail.Ru|gold crawler)" 1;

I am guessing it can be used if I want to match more then just google's user agent. But in any case what I did worked very nice. I tested it using Firefox user agent and I got forbidden page, then tried adding my ip to geo bit and I was allowed.

And there is lot less "google spiders" on our site now, and all of them have ips I added to allowed list.

Thanks again for fast and great advices.

Since I am a noob when it comes to Nginx and now that I know I can get some help here I am sure I'll have more questions :)

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,202715,202770#msg-202770