File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 112112 (` Browser::Bot.detect_empty_ua! ` and ` Browser::Bot.detect_empty_ua? ` ).
113113- [ BREAKING CHANGE] Bot detection is now more aggressive by default. It matches empty
114114 user agents, anything that matches ` crawl|fetch|search|monitoring|spider|bot ` ,
115- and anything listed under https://github.com/fnando/browser/blob/master /bots.yml .
115+ and anything listed under https://github.com/fnando/browser/blob/main /bots.yml .
116116- Add Jaunt to the bot list.
117117
118118## 2.7.1
Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ browser.mobile? #=> false
150150### What's being detected?
151151
152152- For a list of platform detections, check
153- [ lib/browser/platform.rb] ( https://github.com/fnando/browser/blob/master /lib/browser/platform.rb )
153+ [ lib/browser/platform.rb] ( https://github.com/fnando/browser/blob/main /lib/browser/platform.rb )
154154- For a list of device detections, check
155- [ lib/browser/device.rb] ( https://github.com/fnando/browser/blob/master /lib/browser/device.rb )
155+ [ lib/browser/device.rb] ( https://github.com/fnando/browser/blob/main /lib/browser/device.rb )
156156- For a list of bot detections, check
157- [ bots.yml] ( https://github.com/fnando/browser/blob/master /bots.yml )
157+ [ bots.yml] ( https://github.com/fnando/browser/blob/main /bots.yml )
158158
159159### Detecting modern browsers
160160
@@ -298,7 +298,7 @@ following requirements will be considered a bot.
298298- Empty user agent string
299299- User agent that matches ` /crawl|fetch|search|monitoring|spider|bot/ `
300300- Any known bot listed under
301- [ bots.yml] ( https://github.com/fnando/browser/blob/master /bots.yml )
301+ [ bots.yml] ( https://github.com/fnando/browser/blob/main /bots.yml )
302302
303303To add custom matchers, you can add a callable object to
304304` Browser::Bot.matchers ` . The following example matches everything that has a
You can’t perform that action at this time.
0 commit comments