Skip to content
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

Found some improper/non-DNS-level rules. #1224

Open
3 tasks done
thrive7776 opened this issue Feb 19, 2023 · 6 comments
Open
3 tasks done

Found some improper/non-DNS-level rules. #1224

thrive7776 opened this issue Feb 19, 2023 · 6 comments
Labels
Feature Request New feature or request

Comments

@thrive7776
Copy link

Prerequisites

  • I checked the documentation and found no answer;
  • I checked to make sure that this issue has not already been filed;
  • This is not an ad/bug report.

Problem description

1.Invalid javascript
.1.1.1.l80.js^
.n.2.1.js^
.n.2.1.l50.js^
.n.2.1.l60.js^
||crypta.js^ ← No idea why this exist?

According to https://www.iana.org/domains/root/db
.js is not a valid TLD

2.non-DNS-level REGEX
/(https?:\/\/)213\.32\.115\..{100,}/
/(https?:\/\/)217\.182\.11\..{100,}/
/(https?:\/\/)51\.195\.31\..{100,}/

3.Private IP
10.10.34.*
||10.10.34.35^
||10.10.34.36^
||10.10.34.^

4."://DOMAIN.TLD^" & "://*.DOMAIN.TLD"
These rules are working with AGH,
but the expected form is "||DOMAIN.TLD^", right? (make file size smaller.)

5.exceptions.txt
Redundant vertical line at the end positions.
A: @@||FQDN^"|"
B: @@||FQDN^
A ↔ B are equivalent forms. (B-form can make file size smaller.)

Proposed solution

Delete 1, 2, 3.
For 4: Replace "^://(\*\.)?" with "||".
For 5: Replace "\|$" with ""(empty).

Additional information

No response

@thrive7776 thrive7776 added the Feature Request New feature or request label Feb 19, 2023
@Alex-302
Copy link
Member

  1. .js is not a valid TLD
    2.non-DNS-level REGEX
    3.Private IP

👍

  1. .js must be excluded as non-TLD.
  2. Not critical, maybe regexps should be validated and excluded, if it is not for DNS filtering.
  3. May be excluded.

4."://DOMAIN.TLD^" & "://*.DOMAIN.TLD"
These rules are working with AGH,
but the expected form is "||DOMAIN.TLD^", right? (make file size smaller.)

that rules has (had) non-DNS purpose, for blocking subdomains only. Also they are very old (before implementing our DNS). Removed them.

5.exceptions.txt
Redundant vertical line at the end positions.

Not redundant. ^| prevents unwanted unblocking when DNS filter is added to a regular ad blocker.

@thrive7776
Copy link
Author

thrive7776 commented Feb 20, 2023

@Alex-302
Hello Alex,
exceptions.txt#L59 @@-ds.metric.gstatic.com^
exceptions.txt#L221 @@||guce.advertising.com^
exceptions.txt#L232 @@||ads.tdbank.com^
so... these entries(without last |) are for special purpose?

@Alex-302
Copy link
Member

@thrive7776 old exclusions. Changed
#1227

@thrive7776
Copy link
Author

@thrive7776 old exclusions. Changed #1227

I see, no questions.
Thank you.

@Panjult3a
Copy link

Why I can't open bilibili

@DandelionSprout
Copy link
Member

DandelionSprout commented Feb 7, 2024

"4."://DOMAIN.TLD^" (…)"
I know such entries became permitted in DNS lists (i.e. the syntax became recognised as an alias for ||) around 2020-21, but changing those entries to || is perfectly okay to do, and wouldn't make any difference for such entries, neither for the worse or for the better.

"/(https?:\/\/)213\.32\.115\..{100,}/"
I'm inclined to side with OP on this one, because there's no realistic way for an IP entry to match .{100,}, which means at least 100 characters must follow the initial 3 numbers. Even as a domain entry, it would be difficult for a domain to match at best, though not outright impossible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants