Only fill this in if you're a spammer huh? Your name :
Your email :
Your message :
May
2nd
2006

SpamHound

Posted in : Spam Trap

SpamHound is born

[b2evo] (which is the blog software we use) comes complete with it's own antispam blacklist, which is basically a list of urls that have been reported as spammers by multiple blog users. Sounds great huh? ...... Well, it kind of is ...... right up to the moment where you want to include one of the "spam" urls in one of your posts ...... and you get called a spammer!!!!

The current antispam blacklist has about 4,400 spam urls listed, many of which have to be obsolete by now, and every hit on a page is checked against it. All comments left, by memebers and visitors alike, are checked against the same list. This all adds up to a lot of unneccesary overheads for the poor old server cpu.

With this in mind I decided to see how effective the blacklist is, and just how many of the urls are actually needed. So, I implemented a comment moderation system for visitors and the emptied the blacklist ....... After deleting several thousand (moderated) spam comments I decided that this wasn't the way forward! The bright side was, I had a shedload of spam comments that I could analyse for common trends.

At the start of March I decided that I was ready for round two, so once again I dropped all of the antispam urls in the blacklist, this time however, I had the SpamHound to protect the blogs. Any comments that the SpamHound munches are automatically added to a seperate table so that the data can be further analysed, and any that get through enter a comment moderation process.

To date the SpamHound has munched over 26,000 spam comments and less than a dozen have managed to get as far as the moderation process!

Keywords : [keys][SpamHound] [SpamStats][/keys]

Contents
  1. Birth of the SpamHound
  2. Overview of how it works
  3. Stats for the month
  4. This months spammers
Latest Gallery : The end of June and it's chilli ;)
  • Couple more lemon drops
  • Thai Dragon
  • Untitled image
  • Untitled image
  • Untitled image
  • Untitled image
  • Untitled image
  • Untitled image

Trackback URL (right click and copy shortcut/link location)

Trackback url for this post
Note : This trackback url is time limited so use it within 30 minutes or the SpamHound will snarl at you.

http://innervisions.org.uk/z/?k=3583320631793107238786ef26fc3408a6e331462d6db2e184a

Gary users avatar

Posts : 420

Joined : 04/04/05

Reply to comment 12868 by Gary

Replied on : 05/03/06 @ 11:02 am #1

Ya dont like Spam them eh ?

Blog-a-doodle-do :D  http://garysblog.co.uk

 
 
¥åßßå users avatar

Posts : 1125

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 12869 by ¥åßßå

Replied on : 05/04/06 @ 01:35 pm #2

I don't even like the spam that comes out of a tin :|

¥

I may have opened the door, but you entered of your own free will

 
 

Replied on : 06/29/06 @ 04:02 am #3

I'm excited to hear about SpamHound, but how soon before we can start implementing it in our own b2evo sites? Hmm? Huh? Hmm?
 
 
¥åßßå users avatar

Posts : 1125

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 12910 by ¥åßßå

Replied on : 06/29/06 @ 08:58 am #4

Lol, hell of a url you have there :O

The SpamHound won't be getting released until after 1.8 comes out, as it requires to much hacking to make it work on any versions lower than that. It still requires a couple of hacks even with 1.8 but I'm working on an install/uninstall script that will automate the process.

¥

I may have opened the door, but you entered of your own free will

 
 
sam2kb users avatar

Posts : 4

Joined : 12/10/08

Reply to comment 15516 by sam2kb

Replied on : 09/24/09 @ 12:16 am #5

Notice: Undefined index: HTTP_USER_AGENT in .../SpamHound/SpamHound.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at .../SpamHound/SpamHound.php:47) in /home/tenderfe/public_html/inc/sessions/model/_session.class.php on line 222

Warning: Cannot modify header information - headers already sent by (output started at .../SpamHound/SpamHound.php:47) in .../inc/_core/_template.funcs.php on line 59


Possible solution: check for empty HTTP_USER_AGENT
if( !empty($_SERVER['HTTP_USER_AGENT']) )
{
kill the spammer!
}

PS can't post the comment if logged in, all blog pages are blank ;)
-sam2kb
 
 

Replied on : 09/24/09 @ 12:17 am #6

Seems like I finally did it...
 
 
¥åßßå users avatar

Posts : 1125

Joined : 10/05/05

Location : 127.0.0.1

Reply to comment 15518 by ¥åßßå

Replied on : 09/25/09 @ 11:31 am #7

You shouldn't have had a problem with commenting whilst logging in ... wonder what broke on the server :-S

The real check would be :

PHP:

if( empty$_SERVER['HTTP_USER_AGENT'] ) )
{
  $SpamHound->kill'Badly behaved spider');
}
;)

¥

I may have opened the door, but you entered of your own free will

 
 

Leave a comment

Your email address will not be displayed on this site.
Your URL will be displayed.
About you

Just fill in the bits you want, none of it is required



Your email address will only be used to send you adverts for viagra and rolex watches.



(Line breaks become <br />)
Leave a comment
Code:
=> :!: :?: :idea: :) :D :p B) ;) :> :roll: :oops: :| :-/ :( >:( :'( |-| :>> ;D :)) 88| :lalala: :crazy: >:XX :o
 
 
 

X