Spamity Spam

at around evening time on Thursday, the 28th of October 2004 by Chad

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

Do you have any idea how frustrating it is being a lesbian ghost?

-- Thelma Bates, Hex

    Poll

    Obama picking Biden for his VP is:
    View Results

Search

Captain's Logs

The Sites

Syndication

Stats

  • Comments: 2586
  • Pingbacks: 48
  • Trackbacks: 172
  • Comment Spam: 67242
View blog authority