Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bmelton
on Feb 23, 2014
|
parent
|
context
|
favorite
| on:
Google's robots.txt
That's amazing. Know of anything like it for Nginx?
anon4
on Feb 23, 2014
|
next
[–]
It's blocking by user agent and source ip. You should be able to port the list easily for Nginx. I'd even say you can write a simple awk script in a few minutes to convert from Apache's format to Nginx's.
coolj
on Feb 23, 2014
|
prev
[–]
curl -s
https://raw.github.com/bluedragonz/bad-bot-blocker/master/.h...
| awk -F\" '/SetEnvIfNoCase/ {pattern = pattern $2 "|"} END {print "if ($http_user_agent ~ (" substr(pattern, 0, length(pattern)-1) ")) { return 403; }"}'
Not tested. :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: