Open ilikenwf opened 7 years ago
Perhaps something like this?
`function strposa($haystack, $needle, $offset=0) {
if(!is_array($needle)) $needle = array($needle);
foreach($needle as $query) {
if(strpos($haystack, $query, $offset) !== false) return true; // stop on first true result
}
return false;
}`
from https://stackoverflow.com/questions/6284553/using-an-array-as-needles-in-strpos
I notice a lot of spammers are using throwaway subdomains on the same TLD, so something like:
bad1.spam.cc bad2.spam.cc
The problem there is we have to update the list every time, instead of just blocking spam.cc in the email checker list we have setup...