fix: stricter IPv4 matching

- avoid excluding domains with IPv4, e.g. static.21.101.69.159.clients.your-server.de
This commit is contained in:
MDLeom 2021-07-18 09:59:09 +00:00
parent 9fbb4b4686
commit 0a633e3c57
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ sort | \
sed '1 i\'"$COMMENT"'' > "../dist/phishing-filter-domains.txt"
cat "phishing-notop-domains.txt" | \
grep -vE "([0-9]{1,3}[\.]){3}[0-9]{1,3}" > "phishing-notop-hosts.txt"
grep -vE "^([0-9]{1,3}[\.]){3}[0-9]{1,3}$" > "phishing-notop-hosts.txt"
## Hosts file blocklist
cat "phishing-notop-hosts.txt" | \