mirror of
https://github.com/Nezumi-2711/cloudflare-gateway-pihole-scripts.git
synced 2026-09-22 13:38:37 +00:00
updated gateway rule to block subdomains
This commit is contained in:
@@ -30,7 +30,7 @@ async function getZeroTrustLists() {
|
|||||||
|
|
||||||
// Build the wirefilter expression
|
// Build the wirefilter expression
|
||||||
for (const list of filtered_lists) {
|
for (const list of filtered_lists) {
|
||||||
wirefilter_expression += `dns.fqdn in \$${list.id} or `;
|
wirefilter_expression += `any(dns.domains[*] in \$${list.id}) or `;
|
||||||
}
|
}
|
||||||
// Remove the trailing ' or '
|
// Remove the trailing ' or '
|
||||||
if (wirefilter_expression.endsWith(' or ')) {
|
if (wirefilter_expression.endsWith(' or ')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user