Dec 17, 2004 Nomadig, WordPress:

Spam Update

After I installed Kitten’s Spaminator, not a single spam comment has gone through. Several normal comments have been posted with no problems.

I’ve set Spaminator to send email to me for every spam killed, so if it accidentally kills a legal comment, I could repost it. I soon learned that this approach has one problem: I need to go through all the emails by hand and sometimes this is quite daunting task.

Spaminator sets the following subject for all mails:

[Blogname] Spaminator: Spammer caught!

I fixed the PHP code to include other information to make it easier to delete all repeating messages:

[Blogname: SPAM] sender <email> URL

For example:

[Nomadig: SPAM] Mr Foo Bar <foo@example.com> http://www.example.com/

This is accomplished by changing the value of variable $to on line 146 to following:

$to = '[' . get_settings('blogname') . ': SPAM]' .
      $this->post['author'] . ' <' . $this->post['email'] . '>, ' .
      $this->post['url'];

2 Comments

The URI to TrackBack this entry is: http://www.nomadig.com/2004/12/17/spam-update/trackback

1. Brian Arnold — Tuesday, Dec 21 2004

I made a similar hack myself. However, I just went for the email address. I do like your additions though. I also put in extra check into the 1.0rc2 for HTML entities in the author. It’s an awesome plugin, and I’m glad to see I’m not the only person making minor hacks of it. ;)

2. Janne — Tuesday, Dec 21 2004

Brian, sounds like a good idea. Do you have the source code available somewhere for taking a look?

Leave a comment

The following Textile shortcuts are available:

_emphasis_
*strong*
@code@
^superscript^
~subscript~
+inserted text+

Hyperlink:
"link text":http://link.url

Image:
!http://image.url!

Lists:
* bulleted
# numbered

Hide help

Please be polite and use common sense when posting. Any comment is subject to removal. The e-mail address is required, but it is not shown to anybody else than the administrator.

Commenting uses Textile and your message is previewed below. Show Textile help

Write your comments

 

Preview

3.  — Feb 7 2012