Spamity Spam

at around evening time on Thursday, the 28th of October 2004 by Capt Jake Fortune

Run WordPress? Sick of spam comments? Yeah, who isn’t.
The last few hours this site was targeted, getting several comments every few minutes. I had moderation turned on, so none ever showed up, but its still a pain to process.
So thank you Fahim Farook for the WP blacklist plugin. Works great, and is a must have for all.
Next, do the following:
Rename wp-comments-post.php to something else, and change the reference in wp-comments.php to match it. Then create a blank file called wp-comments-post.php so the spammers won’t get a 404 error. Fixes about 80% of the inbound spam, so you don’t even know it is happening. The automated spamming tools just post directly to wp-comments-post.php
Finally, if you want to go hardcore, add this to a .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_REFERER} "!^http://www.your_domain_here.com/.*$" [NC]
RewriteCond %{REQUEST_URI} ".*wp-comments-post.php$"
RewriteRule .* - [F]

This will not let anyone post a comment directly without being referred from a page on your site. Please not that this will break a small percentage of browsers, so be careful. See the WordPress wiki for more info…

[del.icio.us] [Digg] [Facebook] [MySpace] [Sphere] [StumbleUpon] [Technorati] [Windows Live] [Email]
1 Star2 Stars3 Stars4 Stars5 Stars
(No Ratings Yet)
Loading ... Loading ...

Related Posts

One Response to “Spamity Spam”

  1. Pirates! Man Your Women! Says:

    Comment Spam

    If you are a long time blog reader you know that for months, many sites have disabled commenting, or taken other extreme measures to cut down on the comment spam. Seems that the subhuman monsters that do this have created automatic bots that just crea…

Leave a Reply

You know those Kay Jewellers commercials? The tagline is: “Every Kiss Begins with Kay.” So, once again: If every kiss begins with a diamond or other bauble from Kay, then you’re either dating, or married to, a whore.

-- Jonah Goldberg

Recent Posts

    Poll

    Are people dumber now than before?
    View Results

Search

Captain's Logs

The Sites

Syndication

Stats

  • Comments: 6943
  • Pingbacks: 49
  • Trackbacks: 172