Skip to content

Commit

Permalink
Add a full list of validated bots to skip the fake browser tests.
Browse files Browse the repository at this point in the history
This should make it easier to maintain in the long run, and whitelists all
of the yandex bots too.
  • Loading branch information
Flameeyes committed Sep 30, 2017
1 parent c4c2b83 commit 5872a39
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/flameeyes_60_fake_browsers.conf
Expand Up @@ -16,7 +16,7 @@
# agents because they will try to pass for browsers even when they are
# not. We already validate these bots to be coming from a FcRDNS so we
# don't need to apply more validation.
SecRule REQUEST_HEADERS:User-Agent "@pm applebot bingbot bingpreview googlebot" \
SecRule REQUEST_HEADERS:User-Agent "@pmfromfile flameeyes_validated_robots.data" \
"id:436998,t:lowercase,phase:2,skipAfter:FLAMEEYES_END_FAKE_BROWSERS_HEADERS,nolog"

# A number of spambots tries to mimic known good User-Agent values,
Expand Down
39 changes: 39 additions & 0 deletions rules/flameeyes_validated_robots.data
@@ -0,0 +1,39 @@
adsbot-google
applebot
applebot
archive.org_bot
baiduspider
bingbot
bingpreview
bloglines/
blogscope
friendfeedbot
googlebot
hailoobot
linkedinbot
mediapartners-google
mojeekbot
netvibes
newsgator
technoratibot
yadirectfetcher
yandexaccessibilitybot
yandexblogs
yandexbot
yandexcalendar
yandexdirectdyn
yandexfavicons
yandeximageresizer
yandeximages
yandexmedia
yandexmetrika
yandexmobilebot
yandexnews
yandexpagechecker
yandexscreenshotbot
yandexsitelinks
yandexvertis
yandexvideo
yandexvideoparser
yandexwebmaster
yeti/

0 comments on commit 5872a39

Please sign in to comment.