Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Stop Comment Spam - Best For NonEnglish Users

Dear All

I found a way to stop any spam in comments as it works here :

Do This Changes to the comments_include.php file in includes directory :

keyword : if (!$flood)

Before change :
CodeDownload  

if (!$flood) $result = dbquery("INSERT INTO ".DB_PREFIX."comments (comment_item_id, comment_type, comment_name, comment_message, comment_smileys, comment_datestamp, comment_ip) VALUES ('$cid', '$ctype', '$comment_name', '$comment_message', '$comment_smileys', '".time()."', '".USER_IP."')");




After :
CodeDownload  

if (!$flood) {
               $comment_message1= str_replace("1234","-",$comment_message);
               $comment_message1= str_replace("12345","-",$comment_message1);
               $comment_message1= str_replace("bear","-",$comment_message1);
                  
               if($comment_message1==$comment_message){
         $result = dbquery("INSERT INTO ".DB_PREFIX."comments (comment_item_id, comment_type, comment_name, comment_message, comment_smileys, comment_datestamp, comment_ip) VALUES ('$cid', '$ctype', '$comment_name', '$comment_message', '$comment_smileys', '".time()."', '".USER_IP."')");
}
      }

add any word you think spams will enter them and you dont like it !

A New Way Any Way ! :(
You can also use our mod "Lock comments" and lock the comment function for all but iSUPERADMIN.
Oh yeah man ! ;)

But what i did here is not any LOCKing! all users can send comments but not spammers !

Thank you for your reply ... :)
Thats awesome mraja, i mentioned something like this few days ago. Great!

Just curious, where do u enter the keywords, or is it graping it from the bad words thats already available (word filter).......take me through....sounds like a great idea. :|
Dear Friend
Keyword was a word to help you find the line that should be change

instead of 12345 you can use filtering words.
copy and paste that line for more words.

babye :o
We're looking to implement some kind of spam filter/blocker, currently doing research on this growing prob.
Dear Admin

There is a lot of ways in my mind , can i send them to you as they come to my mind ?
(Like a central spam-filter bank that works with get method)

Thanks
Thread Information
Author
mraja
Replies
7 posts
Views
1,361 times
Last Post
Last updated on 13 years ago
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.