fix: utilise static filter to block url

- https://old.reddit.com/r/uBlockOrigin/comments/73q6km/how_to_block_specific_url/
This commit is contained in:
curben 2020-07-05 06:09:03 +01:00
parent c6baf37019
commit 859dfd03c6
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 6 additions and 2 deletions

View File

@ -96,10 +96,14 @@ grep -F -vf "urlhaus-top-domains.txt" > "malware-domains-online.txt"
## Parse malware URLs from popular domains
cat "urlhaus.txt" | \
grep -F -f "urlhaus-top-domains.txt" > "malware-url-top-domains.txt"
grep -F -f "urlhaus-top-domains.txt" | \
sed "s/^/||/g" | \
sed "s/$/^\$all/g" > "malware-url-top-domains.txt"
cat "urlhaus-online.txt" | \
grep -F -f "urlhaus-top-domains.txt" > "malware-url-top-domains-online.txt"
grep -F -f "urlhaus-top-domains.txt" | \
sed "s/^/||/g" | \
sed "s/$/^\$all/g" > "malware-url-top-domains-online.txt"
## Merge malware domains and URLs