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 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Feedback
View previous topic :: View next topic  
Author Message
Jobe



Joined: 16 Jan 2004
Posts: 1
Location: Ottawa Canada

PostPosted: Fri Jan 16, 2004 1:33 am    Post subject: How to kill blog spam Reply with quote

I'm no expert when it comes to blogs nor the miriad of solutions which already have been tried to prevent spam, but it seems to me that the spam isn't coming from some automated software program but rather from people paid to sit at a computer terminal and find the easiest way to spam us all. I'm guessing here, but wouldn't asking 3 questions about the weblog site they're looking at be enough to keep them out? The effort required to read before spamming would probably put the spammers off. If nothing else, perhaps those new members would be placed in a list / catergory such as 'potential spammers' if they answer the questions incorrectly. The questions could even randomly cycle.

Well, just some ideas. I love b2. Great product keep up the great work!
Back to top
View user's profile Send private message
kosmicdj



Joined: 07 Jun 2004
Posts: 6
Location: www.scripttemplate.com

PostPosted: Mon Jun 07, 2004 9:58 pm    Post subject: Reply with quote

you can completly turn off the ability to reply, or make them become a member before reply
_________________
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 773
Location: Oslo, Norway

PostPosted: Tue Jun 08, 2004 9:15 am    Post subject: Reply with quote

You can install the "comments-pending-script", which puts every comment posted "on hold" until you've approved it.

Look in the Hacks section
_________________
VOTE for Female of the Year 2004 NOW!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
lynn



Joined: 04 Jul 2003
Posts: 63
Location: USA

PostPosted: Tue Aug 24, 2004 1:34 pm    Post subject: Reply with quote

I don't want to bother with approving every comment; besides, some visitors might be put off by moderated comments. It would be very helpful if I could turn off the ability to comment on archived posts. Most spammers pick an old post to spam and I don't even know about it until all the weird and sick Google referrals start coming in.
Back to top
View user's profile Send private message Visit poster's website
stevem



Joined: 15 Mar 2003
Posts: 323

PostPosted: Tue Aug 24, 2004 8:21 pm    Post subject: Reply with quote

This isn't quite what you asked for but you may find useful.

I adapted code from WordPress to bar comments with 5 or more links in it (you can change that number in the second line below)
In b2comments.post.php
After
Code:
/* end flood-protection */

Add
Code:
/* spam-protection */
if ( (count(explode('http:', $comment)) - 1) >= 5 ) {
   $ok=0;
   $spam=1;
} else {
   $spam=0;
}
/* end spam-protection */


Then replace
Code:
} else {
   die("Sorry, you can only post a new comment every 30 seconds");
}

by
Code:
} elseif ($spam==0) {
   die("Sorry, you can only post a new comment every 30 seconds");

} else {
   header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
   header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
   header("Cache-Control: no-cache, must-revalidate");
   header("Pragma: no-cache");
   $location = (!empty($HTTP_POST_VARS['redirect_to'])) ? $HTTP_POST_VARS['redirect_to'] : $HTTP_SERVER_VARS["HTTP_REFERER"];
   header("Location: $location");
}


Last edited by stevem on Sat Aug 28, 2004 9:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
lynn



Joined: 04 Jul 2003
Posts: 63
Location: USA

PostPosted: Wed Aug 25, 2004 1:30 pm    Post subject: Reply with quote

Thanks. That does seem like it would be useful. I'm not very experienced with this sort of thing though and messing around with my blog code is really really scary. What's with the July '97 date? What's that all about?
Back to top
View user's profile Send private message Visit poster's website
stevem



Joined: 15 Mar 2003
Posts: 323

PostPosted: Wed Aug 25, 2004 6:46 pm    Post subject: Reply with quote

You shouldn't be afraid to change the code - it's actually written to encourage changes.
1. Make a backup copy of b2comments.post.php so if anything goes wrong you can always go back to it.
2. Open the file in an editor such as Notepad (NOT a word processor) then copy and paste the code you need to change, making sure you haven't missed anything when you copied.
3. Save the file and upload it.
If it gives an error then you can come back here to ask what it means and meanwhile put back the old version so your blog will be fine.

The lines with the old date are to tell the browser that the page is really old and needs refreshing so you see a new version, not an old one saved on your computer. It doesn't need to be 1997, but I expect that has been copied over and over for years - in fact I copied it from elsewhere in the file.
Back to top
View user's profile Send private message
Miyu



Joined: 05 Nov 2002
Posts: 34

PostPosted: Sat Aug 28, 2004 5:47 am    Post subject: Reply with quote

thanks for this tip - ive been getting SO hammered by these folks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lynn



Joined: 04 Jul 2003
Posts: 63
Location: USA

PostPosted: Tue Aug 31, 2004 1:59 pm    Post subject: Reply with quote

I don't have the flood protection line in my template so I'm not sure where to put this.
Back to top
View user's profile Send private message Visit poster's website
stevem



Joined: 15 Mar 2003
Posts: 323

PostPosted: Tue Aug 31, 2004 3:01 pm    Post subject: Reply with quote

It's not in the template but in b2comments.post.php about half-way down the file.
Back to top
View user's profile Send private message
Sigg3



Joined: 03 Jul 2003
Posts: 773
Location: Oslo, Norway

PostPosted: Fri Sep 03, 2004 10:59 am    Post subject: Reply with quote

I don't like having pendin'-status on my posts either, 'cause among other things there are some uninvited rappers fighting on one of my very old hip-hop posts, and I really enjoy watching it:) But I doubt they will keep on going if I put their straight spittin' "on hold".

Follow the Fight Night @:
http://www.sigg3.net/b2commentspopup.php?p=11&c=1

In addition, you sometimes get this weird-looking comments that probably have some content under style="display: none;" or something, to boost their google importance.

I just do it manually over a cup (or three) of coffe. It's the only way to make sure.
_________________
VOTE for Female of the Year 2004 NOW!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
turtelina



Joined: 25 Jan 2002
Posts: 42
Location: Austria

PostPosted: Sat Sep 04, 2004 2:24 pm    Post subject: Reply with quote

Hey Sigg3,

I never had problems with being spammed to death as over the last few days (100s and 100s!). I was wondering where the pending comment script can be found? Could you post an URL?

Thanks so much!
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 773
Location: Oslo, Norway

PostPosted: Mon Sep 06, 2004 12:29 pm    Post subject: Reply with quote

I just found out that the pending script was written for WP. I've notified the people at the WP board, asking them to see wether it's possible to run this script as a hack in b2, if you re-write it a little.

post @ http://wordpress.org/support/10/12384

My spam problem is increasing, as well :p
_________________
VOTE for Female of the Year 2004 NOW!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
turtelina



Joined: 25 Jan 2002
Posts: 42
Location: Austria

PostPosted: Mon Sep 06, 2004 2:10 pm    Post subject: Reply with quote

Quote:
My spam problem is increasing, as well :p


It is disgusting!

Just had to stress how much I dislike comment spam.
Back to top
View user's profile Send private message Visit poster's website
Sigg3



Joined: 03 Jul 2003
Posts: 773
Location: Oslo, Norway

PostPosted: Tue Sep 07, 2004 8:18 am    Post subject: Reply with quote

I totally agree with you. It looks awful in my "latest 3 comments" hack, but thanks to it, I delete everyone posted over night.

Still, I'd like a pending feature, since I can't be expected to sit and delete SPAM manually when on holiday or something, and I must have comments to hold and increase the number of active readers.
_________________
VOTE for Female of the Year 2004 NOW!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Feedback All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 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