feat: add AdGuard Home-specific filter
- AdGuard Home is still compatible with URL-based and hosts-based
This commit is contained in:
parent
0de9eadf97
commit
d372fa71af
38
README.md
38
README.md
|
@ -6,6 +6,7 @@ There are multiple formats available, refer to the appropriate section according
|
|||
|
||||
- uBlock Origin (uBO) -> [URL-based](#url-based) section (recommended)
|
||||
- Pi-hole -> [Domain-based](#domain-based) or [Hosts-based](#hosts-based) section
|
||||
- AdGuard Home -> [Domain-based (AdGuard Home)](#domain-based-adguard-home) or [Hosts-based](#hosts-based) section
|
||||
- Hosts file -> [Hosts-based](#hosts-based) section
|
||||
- Dnsmasq -> [Dnsmasq](#dnsmasq) section
|
||||
- BIND -> [BIND](#bind) section
|
||||
|
@ -57,6 +58,8 @@ Regular version contains >260K filters, do note that uBO can [easily handle](htt
|
|||
|
||||
If you've installed the lite version but prefer to use the regular version, it's better to remove it beforehand. Having two versions at the same time won't cause any conflict issue, uBO can detect duplicate network filters and adjust accordingly, but it's a waste of your bandwidth.
|
||||
|
||||
AdGuard Home is not compatible with the URL filter (`||baddomain.com/bad/page$all`) of this blocklist, although it is still compatible with the domain filter (`||baddomain.com^`) also used in this blocklist, consider using a [smaller blocklist](#domain-based-adguard-home) (it's around half smaller).
|
||||
|
||||
## Domain-based
|
||||
|
||||
This blocklist includes domains and IP addresses.
|
||||
|
@ -92,6 +95,41 @@ Lite version (online domains/IPs only):
|
|||
|
||||
</details>
|
||||
|
||||
## Domain-based (AdGuard Home)
|
||||
|
||||
This AdGuard Home-compatible blocklist includes domains and IP addresses.
|
||||
|
||||
- https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-agh.txt
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-agh.txt
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-agh.txt
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-agh.txt
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-agh.txt
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-agh.txt
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-agh.txt
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
Lite version (online domains/IPs only):
|
||||
|
||||
- https://gitlab.com/curben/urlhaus-filter/raw/master/urlhaus-filter-agh-online.txt
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-agh-online.txt
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-agh-online.txt
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-agh-online.txt
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-agh-online.txt
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-agh-online.txt
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-agh-online.txt
|
||||
|
||||
</details>
|
||||
|
||||
## Hosts-based
|
||||
|
||||
This blocklist includes domains only.
|
||||
|
|
13
script.sh
13
script.sh
|
@ -116,7 +116,7 @@ FIFTH_LINE="! License: https://creativecommons.org/publicdomain/zero/1.0/"
|
|||
SIXTH_LINE="! Source: https://urlhaus.abuse.ch/api/"
|
||||
COMMENT_ABP="$FIRST_LINE\n$SECOND_LINE\n$THIRD_LINE\n$FOURTH_LINE\n$FIFTH_LINE\n$SIXTH_LINE"
|
||||
|
||||
# Compatibility with Adguard Home (#19)
|
||||
# Compatibility with Adguard Home (#19, #22)
|
||||
cat "malware-domains.txt" | \
|
||||
sed "s/^/||/g" | \
|
||||
sed "s/$/^/g" > "malware-domains-adguard.txt"
|
||||
|
@ -125,6 +125,17 @@ cat "malware-domains-online.txt" | \
|
|||
sed "s/^/||/g" | \
|
||||
sed "s/$/^/g" > "malware-domains-online-adguard.txt"
|
||||
|
||||
cat "malware-domains-adguard.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Blocklist/Blocklist (AdGuard Home)/" > "../urlhaus-filter-agh.txt"
|
||||
|
||||
cat "malware-domains-online-adguard.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' | \
|
||||
sed "1s/Malicious/Online Malicious/" | \
|
||||
sed "1s/Blocklist/Blocklist (AdGuard Home)/" > "../urlhaus-filter-agh-online.txt"
|
||||
|
||||
cat "malware-domains-adguard.txt" "malware-url-top-domains.txt" | \
|
||||
sort | \
|
||||
sed '1 i\'"$COMMENT_ABP"'' > "../urlhaus-filter.txt"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue