| Against spam "xxx@xxx.info" To stop spams "xxx@xxx.info" in comments
Edit the story.php file
To the line 183 :
--> if(strlen($_POST['comment_content']) > 0)
Add after "0":
--> && !strstr($_POST['comment_content'], "[site]")
Replace [site] by the url/word of your spammer, or "a href=" to disable any link.
Personnally, I have only one spammer (which make lot of damage) on my site and this method stop him absolutly. (a lot of users are still registred :/)
Something like that could be improved in order to use a black list of spam words...
Last edited by JosephK; 12-11-2007 at 04:41 PM..
|