Unverified Commit e5bf2ca9 authored by Lasse Karstensen's avatar Lasse Karstensen Committed by GitHub

Merge pull request #40 from goodeggs/add-pingdom-bot

Add bot detection for Pingdom monitoring service
parents 18262035 0bf6c091
......@@ -12,6 +12,7 @@ bot Wotbox/2.01 (+http://www.wotbox.com/bot/)
bot Mozilla/5.0 (compatible; AhrefsBot/3.1; +http://ahrefs.com/robot/)
bot Baiduspider+(+http://www.baidu.com/search/spider.htm)
bot Mozilla/5.0 (compatible; SeznamBot/3.2; +http://fulltext.sblog.cz/)
bot Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PingdomTMS/0.8.5 Safari/534.34
bot facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
# from https://developers.google.com/webmasters/mobile-sites/references/googlebot
......
......@@ -45,6 +45,7 @@ sub devicedetect {
set req.http.X-UA-Device = "mobile-bot"; }
elsif (req.http.User-Agent ~ "(?i)(ads|google|bing|msn|yandex|baidu|ro|career|seznam|)bot" ||
req.http.User-Agent ~ "(?i)(baidu|jike|symantec)spider" ||
req.http.User-Agent ~ "(?i)pingdom" ||
req.http.User-Agent ~ "(?i)facebookexternalhit" ||
req.http.User-Agent ~ "(?i)scanner" ||
req.http.User-Agent ~ "(?i)(web)crawler") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment