boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to kill blog spam
Goto page Previous  1, 2
 
Post new topic   Reply to topic    boardom Forum Index -> Feedback
View previous topic :: View next topic  
Author Message
daveo123



Joined: 23 Apr 2004
Posts: 13

PostPosted: Sat Oct 23, 2004 7:54 pm    Post subject: Works Like a Charm...Except one little thing.... Reply with quote

Thank you thank you thank you for posting this! I installed it and it works like a charm. There is only one problem which is more of an inconvience really.

When you do Show Comments and it brings up the table if you check off the check box in the header under delete and then click the button on the bottom (forget what it's labeled) it doesn't delete the whole list. If you check off the lines individually it does work however.

Like I said, just a minor inconvenience and hopefully with the blacklisting feature I won't have spam in a massive quantity any more before I blacklist them.

Thanks again! This is a life (and time) saver...
Back to top
View user's profile Send private message
SmoovyG



Joined: 20 Apr 2004
Posts: 3

PostPosted: Sun Oct 24, 2004 1:58 am    Post subject: Reply with quote

OK, so I'm trying to get this hack working in my code, but I'm getting the following error whenever I try to post any comments at all.

Parse error: parse error in /home/virtual/site38/fst/var/www/html/b2comments.post.php on line 92

I've looked at the code over and over, and it's exactly as it's presented in this thread. Any suggestions?

-- steve
Back to top
View user's profile Send private message Visit poster's website AIM Address
stevem



Joined: 15 Mar 2003
Posts: 369

PostPosted: Sun Oct 24, 2004 11:45 am    Post subject: Reply with quote

Can you tell us exactly what is on line 92 of your b2comments.post.php?
Back to top
View user's profile Send private message
SmoovyG



Joined: 20 Apr 2004
Posts: 3

PostPosted: Sun Oct 24, 2004 4:47 pm    Post subject: Reply with quote

Here's how the code lays out with the line numbers next to each line.


90 /* spam-protection */
91 if ( (count(explode('http:', $comment)) - 1) >= 5 ) {
92    $ok=0;
93    $spam=1;
94 } else {
95    $spam=0;
96 }
97 /* end spam-protection */



-- steve
Back to top
View user's profile Send private message Visit poster's website AIM Address
stevem



Joined: 15 Mar 2003
Posts: 369

PostPosted: Sun Oct 24, 2004 5:40 pm    Post subject: Reply with quote

Yes that code is absolutely fine. The only things I can think of is that

1. the error (eg the wrong bracket or missing ; ) comes from earlier on which means looking at the previous 90 odd lines. Or temporarily comment out/remove the new code and see if you still get a parse error

2. you are looking at a different file - double-check that the one you've uploaded is the same as the one you are looking at
Back to top
View user's profile Send private message
lynn



Joined: 04 Jul 2003
Posts: 66
Location: USA

PostPosted: Sun Nov 14, 2004 2:14 am    Post subject: Reply with quote

Sorry to be so needy but I have a few more questions. I got the answer to my request about closing old comments, on another thread but I haven't tried it yet. Looks complicated but I will try it.

The spam is getting outrageous. They used to just hit old comments but today I had someone come and leave one or two dozen spam comments on every single post. It was so bad I had to just remove comments from my blog but I'm still getting them anyway. I can see them on the b2 post/edit page.

Anyway, questions: 30 seconds flood control doesn't seem long enough to be useful. Is there any way to change that? Does it have to be expressed in seconds? Could it be set for 5 minutes or maybe 10 minutes? Next question. Is it possible to stop people from leaving any links in comments instead of just limiting it to a few?

That's all I can think of now but I'm sure there'll be more.
Back to top
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 1285
Location: Oregon

PostPosted: Sun Nov 14, 2004 4:36 am    Post subject: Reply with quote

Lynn,

Take a look at...
http://www.cafelog.com/board/viewtopic.php?t=5849
http://www.cafelog.com/board/viewtopic.php?t=5891
_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 1285
Location: Oregon

PostPosted: Sun Nov 14, 2004 4:53 am    Post subject: Reply with quote

Code:
/* spam-protection */
if (substr_count($comment, "http://") >= 5) {
   exit("Your comment has been filtered as a SPAM!");
}

_________________
Michael P.

Back to top
View user's profile Send private message AIM Address
lynn



Joined: 04 Jul 2003
Posts: 66
Location: USA

PostPosted: Sun Nov 14, 2004 3:44 pm    Post subject: Reply with quote

Thanks. I installed the anti-bot script with no problem.
Back to top
View user's profile Send private message Visit poster's website
gashford



Joined: 29 Nov 2003
Posts: 2

PostPosted: Wed Feb 16, 2005 12:08 am    Post subject: BLOG Spam Reply with quote

I am using a "canned" b2 under iPowerWeb and I just started getting these garbage comments from "texasholdem" or something like that pushing their gambling links that don't seem to work. This is just for the phpbb's info at this time.

GEA
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Feedback All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group