mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Provide notice message for whitelisted sites
This commit is contained in:
parent
3b44a0da32
commit
1c2aa44d46
@ -168,6 +168,11 @@ if ($queryAds[0] === "blacklist.txt") {
|
|||||||
$intBlacklist = array("π" => $queryAds[0]);
|
$intBlacklist = array("π" => $queryAds[0]);
|
||||||
$queryAds[0] = "π"; // Manually blacklisted sites do not have a number
|
$queryAds[0] = "π"; // Manually blacklisted sites do not have a number
|
||||||
$notableFlagClass = "blacklist";
|
$notableFlagClass = "blacklist";
|
||||||
|
} elseif ($queryAds[0] === "whitelist.txt") {
|
||||||
|
$intBlacklist = array("π" => $queryAds[0]);
|
||||||
|
$queryAds[0] = "π";
|
||||||
|
$notableFlagClass = "noblock";
|
||||||
|
$wlInfo = "recentwl";
|
||||||
} elseif ($queryAds[0] === "03-pihole-wildcard.conf") {
|
} elseif ($queryAds[0] === "03-pihole-wildcard.conf") {
|
||||||
$intBlacklist = array("π" => $queryAds[0]);
|
$intBlacklist = array("π" => $queryAds[0]);
|
||||||
$queryAds[0] = "π";
|
$queryAds[0] = "π";
|
||||||
@ -181,7 +186,7 @@ if ($queryAds[0] === "blacklist.txt") {
|
|||||||
if (array_key_exists("target", $dnsRecord)) {
|
if (array_key_exists("target", $dnsRecord)) {
|
||||||
$wlInfo = $dnsRecord['target'];
|
$wlInfo = $dnsRecord['target'];
|
||||||
} else {
|
} else {
|
||||||
$wlInfo = "recentwl";
|
$wlInfo = "unknown";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user