Skip to content
Snippets Groups Projects
Commit e78d60b5 authored by Michael Fairchild's avatar Michael Fairchild
Browse files

Add another rule to prevent spam.

the word 'porn' has been turning up a lot lately.
parent 03de4fae
Branches
No related tags found
No related merge requests found
......@@ -255,6 +255,11 @@ $rules['text'][] = function($spam) {
return true;
}
if (substr_count($spam, 'porn') > 0) {
// No porn
return true;
}
if (strpos(strtolower($spam), 'cialis') !== false
|| strpos(strtolower($spam), '<a href=') !== false
|| strpos(strtolower($spam), 'bitcoin') !== false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment