Comment spam
Posted: Tue Aug 31, 2004 4:57 pm
My site is getting slammed with comment spam. I had emails turned on (now off) so I received roughly 200 spam messages, forwarded from my site. How can I prevent this from occuring? Thanks
Code: Select all
delete from serendipity_comments where author='online casino';
delete from serendipity_comments where author='order phentermine';
delete from serendipity_comments where author='diet pills';
delete from serendipity_comments where author='phentermine';
delete from serendipity_comments where author='dietpills';
delete from serendipity_comments where author='casino';Code: Select all
update serendipity_comments set allow_comment=false;I have not looked in comment.php, if any of this valid.Improve your PHP scripts:
* Use POST method for html forms, not GET
* perform a check:
$referrer = parse_url( $_SERVER[ "HTTP_REFERER" ] );
if ( $referrer[ "host" ] != $_SERVER["HTTP_HOST"] ) {
echo "Don't post from another server!";
exit();
}
* set register_globals=off
and so on
Code: Select all
update serendipity_entries set allow_comments=falseCasino junkie is easy, as it always uses same authors. You just delete them and be done with him. Today I got hit with spammer that invented a new author for every comment, about 145 of them. It would have been easy as it had same origin ip-address, unfortunately the serendipity_comments ip-field was null in every case. This ip-address is of course now blocked at .htaccess level.pixeldown wrote:I've experienced the same problem, also. Using phpmyadmin I removed the offending comments - but the problem came back an hour later. Also - there was a new top referrer that appeared, too.
I've experienced up to 3 comments per entry! Same pill pushing casino junkie.
Latest CVS works and has improved spam protection (as a plugin and in form of comment moderation), aswell as IP logging. It can prevent spamfloods, make it easier to clean up after one and even lock down your blog if it is under attack.daFool wrote:Casino junkie is easy, as it always uses same authors. You just delete them and be done with him. Today I got hit with spammer that invented a new author for every comment, about 145 of them. It would have been easy as it had same origin ip-address, unfortunately the serendipity_comments ip-field was null in every case. This ip-address is of course now blocked at .htaccess level.pixeldown wrote:I've experienced the same problem, also. Using phpmyadmin I removed the offending comments - but the problem came back an hour later. Also - there was a new top referrer that appeared, too.
I've experienced up to 3 comments per entry! Same pill pushing casino junkie.
I would gladly upgrade serendipity if I just knew which version would work. I have tried several snapshots. A few of them won't install and some install but are broken in creative ways, either they spew postgres-errors or just plainly throw error pages at you. The best installation after 0.6pl3 I have had installed ok but did not upgrade ok and using rss-feed to pull entries from the 0.6pl3 installation broke "ä" and "ö".
I am very eagerly waiting for an official release.
Code: Select all
//
// Start of SPAM BLOCKER INSERTION CODE
//
$imageSecurityCodeIsNotOk = false;
if (class_exists("serendipity_event_spam_blocker") &&
isset($serendipity_event_spam_blocker_ClassInstance) &&
$serendipity_event_spam_blocker_ClassInstance != null){
$tempClass = $serendipity_event_spam_blocker_ClassInstance;
$SUBMIT_FORM_VARS = array_merge($HTTP_POST_VARS,$HTTP_GET_VARS);
// IMAGE CODE SECURITY CHECK
$tempClass->checkAfterFormSubmitImageSecurityCode($html_header,$SUBMIT_FORM_VARS);
// MAX COMMENTS PER HOUR IP CHECK
$tempClass->checkAfterFormSubmitMaxCommentsPerHourReached($html_header,$SUBMIT_FORM_VARS);
// submit will be ok, register as success comment
if (!empty($comment['comment'])){
if ($tempClass->isAllowedmaxCommentsPerHourCheck()){
$ipBlockerClass = new IpBlocker();
$ipBlockerClass->addCommentIp(getenv("REMOTE_ADDR"));
}
}
}
//
// End of SPAM BLOCKER INSERTION CODE
//