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 112
112
(` Browser::Bot.detect_empty_ua! ` and ` Browser::Bot.detect_empty_ua? ` ).
113
113
- [ BREAKING CHANGE] Bot detection is now more aggressive by default. It matches empty
114
114
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 .
116
116
- Add Jaunt to the bot list.
117
117
118
118
## 2.7.1
Original file line number Diff line number Diff line change @@ -150,11 +150,11 @@ browser.mobile? #=> false
150
150
### What's being detected?
151
151
152
152
- 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 )
154
154
- 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 )
156
156
- 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 )
158
158
159
159
### Detecting modern browsers
160
160
@@ -298,7 +298,7 @@ following requirements will be considered a bot.
298
298
- Empty user agent string
299
299
- User agent that matches ` /crawl|fetch|search|monitoring|spider|bot/ `
300
300
- 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 )
302
302
303
303
To add custom matchers, you can add a callable object to
304
304
` Browser::Bot.matchers ` . The following example matches everything that has a
You can’t perform that action at this time.
0 commit comments