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
Third-party rules do not block 4-th level subdomains #116
Comments
As I can see in console, global.js is blocked and on the next line an other 4-th level domain is blocked. So everything is fine? |
No, it's not fine. partner.googleadservices.com - is a 3rd level subdomain. Just disable "Safari filter" and it won't be blocked again. |
The same issue with exception rules:
While here is the rule that should unblock it:
|
Fixed, the issue was in incorrect regexp: |
Hm, seems that the incorrect regexp has became even more incorrect... Also keep in mind, that the whole purpose of new regexp is to avoid using regexp groups. |
What? |
Right. The same as your new version. |
https?://[^.][^/]*.?domain.com |
verygooddomain.com is matched by this regexp: |
Huh, I think we had the same issue with a previous regexp too |
I don't think it's a bug. |
I am pretty sure this is wrong. |
This regexp preffix is used not only for || rules |
In fact it is used for url-filter-rule:
converter:
|
We may ignore this for now and use even simpler regexp:
Or we can try a bit more complex version that works properly:
The question is: what's the difference in terms of performance if we use the second regexp? |
Okay changed to https?://([^/]*.)?domain.com |
What with performance test? What's the difference? |
var regExp3 = new RegExp('^https?://([^/]*.)?some-domain.com.com[/:&?]?', 'i'); var regExp4 = new RegExp('^https?://[^/]*.?some-domain.com.com[/:&?]?', 'i'); |
Ok then. You'd better increase converter version |
…issues/995-redirect to master * commit 'b01f68dfe5e34987a913e9c490769faba1f6c401': Fixed duplicated safebrowsing tabs
The source:
AdguardTeam/AdguardFilters#1192
The problem:
||innity.net^$third-party
https://ssl-cdn.media.innity.net/lib/global.js
The text was updated successfully, but these errors were encountered: