-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to block a domain pattern? #689
Comments
Only a regex can take care of this. For efficiency purpose, the regex would need to be as specific as can be given the regex expression will be tested for every single URL. This one takes care of your examples + any subdomain of these + any protocol:
If subdomains are not an issue:
If protocol can only be
This would be even better if you further narrow with filter options:
|
@gorhill 2 quick ones:
|
|
The regex goes in My Filters and it looks like this. /[A-Za-z9-0-]{15,}.com/ This blocks domains which are at least 15 characters long and end in ".com", but it blocks ALL those domains, not just randomly generated nonsense domains. So it will block "privateinternetaccess.com". |
How about: This will block the URL if it meets all of the following:
If you're concerned only about scripts, then add |
Is there a way to block a domain pattern? Or at least a domain name longer than N characters?
The text was updated successfully, but these errors were encountered: