diff --git a/advanced/index.php b/advanced/index.php index 82d46d52..b6906819 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -168,6 +168,11 @@ if ($queryAds[0] === "blacklist.txt") { $intBlacklist = array("π" => $queryAds[0]); $queryAds[0] = "π"; // Manually blacklisted sites do not have a number $notableFlagClass = "blacklist"; +} elseif ($queryAds[0] === "whitelist.txt") { + $intBlacklist = array("π" => $queryAds[0]); + $queryAds[0] = "π"; + $notableFlagClass = "noblock"; + $wlInfo = "recentwl"; } elseif ($queryAds[0] === "03-pihole-wildcard.conf") { $intBlacklist = array("π" => $queryAds[0]); $queryAds[0] = "π"; @@ -181,7 +186,7 @@ if ($queryAds[0] === "blacklist.txt") { if (array_key_exists("target", $dnsRecord)) { $wlInfo = $dnsRecord['target']; } else { - $wlInfo = "recentwl"; + $wlInfo = "unknown"; } }