Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Wildcards or Match by Top Domain #34

Open
ilikenwf opened this issue Oct 30, 2016 · 1 comment
Open

Need Wildcards or Match by Top Domain #34

ilikenwf opened this issue Oct 30, 2016 · 1 comment

Comments

@ilikenwf
Copy link

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...

@ilikenwf
Copy link
Author

ilikenwf commented Oct 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant