Match spam domains regardless of "www."

master
Skylar Ittner 3 months ago
parent 063ca244ab
commit 46c389d203

@ -163,11 +163,14 @@ try {
}
if (!$found) {
$domainlist[] = $match;
if (strpos($match, "www.") === 0) {
// starts with www, let's strip it and add both to the list to check
$domainlist[] = substr($match, 4);
}
}
}
foreach ($domainlist as $d) {
// check local domain blacklist
foreach ($bannedspamdomains as $word) {
if ($word == $d) {

Loading…
Cancel
Save