Unverified Commit db7f5d8c authored by Alon Salant's avatar Alon Salant Committed by GitHub

Add bot detection for Yahoo! Slurp

The Yahoo spider user agent is `Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)` and is not currently being detected as a bot by `devicedetect`.

See https://help.yahoo.com/kb/SLN22600.html for details.
parent f0a10c4c
......@@ -46,6 +46,7 @@ sub devicedetect {
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)scanner" ||
req.http.User-Agent ~ "(?i)slurp" ||
req.http.User-Agent ~ "(?i)(web)crawler") {
set req.http.X-UA-Device = "bot"; }
elsif (req.http.User-Agent ~ "(?i)ipad") { set req.http.X-UA-Device = "tablet-ipad"; }
......
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