Skip to content

Commit a659b03

Browse files
authored
Update README to refer to blocklist and allowlist (#290)
1 parent b4eeaf2 commit a659b03

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,24 +190,26 @@ Besides capybara screenshot method you can get image as Base64:
190190
* `page.driver.set_proxy(ip, port, user, password)`
191191

192192

193-
## URL Blacklisting & Whitelisting
193+
## URL Block/Allowlisting
194194

195-
Cuprite supports URL blacklisting, which allows you to prevent scripts from
195+
Cuprite supports URL blocklisting, which allows you to prevent scripts from
196196
running on designated domains:
197197

198198
```ruby
199-
page.driver.browser.url_blacklist = %r{http://www.example.com}
199+
page.driver.browser.url_blocklist = %r{http://www.example.com}
200200
```
201201

202-
and also URL whitelisting, which allows scripts to only run on designated
202+
and also URL allowlisting, which allows scripts to only run on designated
203203
domains:
204204

205205
```ruby
206-
page.driver.browser.url_whitelist = %r{http://www.example.com}
206+
page.driver.browser.url_allowlist = %r{http://www.example.com}
207207
```
208208

209-
If you are experiencing slower run times, consider creating a URL whitelist of
210-
domains that are essential or a blacklist of domains that are not essential,
209+
For legacy support, `url_blacklist=` and `url_whitelist=` continue to work respextively
210+
211+
If you are experiencing slower run times, consider creating a URL allowlist of
212+
domains that are essential or a blocklist of domains that are not essential,
211213
such as ad networks or analytics, to your testing environment.
212214

213215
## License

0 commit comments

Comments
 (0)