View previous topic :: View next topic |
Author |
Message |
Jobe
Joined: 16 Jan 2004 Posts: 1 Location: Ottawa Canada
|
Posted: Fri Jan 16, 2004 1:33 am Post subject: How to kill blog spam |
|
|
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 |
|
 |
kosmicdj
Joined: 07 Jun 2004 Posts: 6 Location: www.scripttemplate.com
|
Posted: Mon Jun 07, 2004 9:58 pm Post subject: |
|
|
you can completly turn off the ability to reply, or make them become a member before reply _________________
|
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 773 Location: Oslo, Norway
|
Posted: Tue Jun 08, 2004 9:15 am Post subject: |
|
|
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 |
|
 |
lynn
Joined: 04 Jul 2003 Posts: 63 Location: USA
|
Posted: Tue Aug 24, 2004 1:34 pm Post subject: |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 323
|
Posted: Tue Aug 24, 2004 8:21 pm Post subject: |
|
|
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 |
|
 |
lynn
Joined: 04 Jul 2003 Posts: 63 Location: USA
|
Posted: Wed Aug 25, 2004 1:30 pm Post subject: |
|
|
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 |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 323
|
Posted: Wed Aug 25, 2004 6:46 pm Post subject: |
|
|
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 |
|
 |
Miyu
Joined: 05 Nov 2002 Posts: 34
|
Posted: Sat Aug 28, 2004 5:47 am Post subject: |
|
|
thanks for this tip - ive been getting SO hammered by these folks |
|
Back to top |
|
 |
lynn
Joined: 04 Jul 2003 Posts: 63 Location: USA
|
Posted: Tue Aug 31, 2004 1:59 pm Post subject: |
|
|
I don't have the flood protection line in my template so I'm not sure where to put this. |
|
Back to top |
|
 |
stevem
Joined: 15 Mar 2003 Posts: 323
|
Posted: Tue Aug 31, 2004 3:01 pm Post subject: |
|
|
It's not in the template but in b2comments.post.php about half-way down the file. |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 773 Location: Oslo, Norway
|
Posted: Fri Sep 03, 2004 10:59 am Post subject: |
|
|
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 |
|
 |
turtelina
Joined: 25 Jan 2002 Posts: 42 Location: Austria
|
Posted: Sat Sep 04, 2004 2:24 pm Post subject: |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 773 Location: Oslo, Norway
|
Posted: Mon Sep 06, 2004 12:29 pm Post subject: |
|
|
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 |
|
 |
turtelina
Joined: 25 Jan 2002 Posts: 42 Location: Austria
|
Posted: Mon Sep 06, 2004 2:10 pm Post subject: |
|
|
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 |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 773 Location: Oslo, Norway
|
Posted: Tue Sep 07, 2004 8:18 am Post subject: |
|
|
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 |
|
 |
|