Match spam domains regardless of "www."
This commit is contained in:
parent
063ca244ab
commit
46c389d203
@ -163,11 +163,14 @@ try {
|
|||||||
}
|
}
|
||||||
if (!$found) {
|
if (!$found) {
|
||||||
$domainlist[] = $match;
|
$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) {
|
foreach ($domainlist as $d) {
|
||||||
|
|
||||||
// check local domain blacklist
|
// check local domain blacklist
|
||||||
foreach ($bannedspamdomains as $word) {
|
foreach ($bannedspamdomains as $word) {
|
||||||
if ($word == $d) {
|
if ($word == $d) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user