mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
fix(domains): remove 1936 digit-leading domains that fail DNS validation
Domains starting with a digit (e.g. 02d.com, 0430.com) are technically valid DNS but fail validation in Pi-hole, AdGuard, and other DNS tools that use stricter regexes requiring letter-first labels. Also updated DOMAIN_RE in update_domains.py to use the stricter [letter-first] pattern so future scraped domains also pass validation. Final bypass_sites.txt: 16,117 valid entries
This commit is contained in:
1 parent
b66b22f7f6
commit
70aa6aae57
3 files changed
+4
-1938
No files matched your search
@@ -60,7 +60,7 @@ def backup_file(path, label):
|
||||
|
||||
DOMAIN_RE = re.compile(
|
||||
r'^(?=.{1,253}$)'
|
||||
r'([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+'
|
||||
r'([a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+'
|
||||
r'[a-zA-Z]{2,63}$'
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user