From 0a633e3c574dfdada16ec84c4568537d4a7dd9f3 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 18 Jul 2021 09:59:09 +0000 Subject: [PATCH] fix: stricter IPv4 matching - avoid excluding domains with IPv4, e.g. static.21.101.69.159.clients.your-server.de --- src/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.sh b/src/script.sh index 8b645540..db40e746 100644 --- a/src/script.sh +++ b/src/script.sh @@ -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" | \