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]](http://pirate-king.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://pirate-king.com/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://pirate-king.com/wp-content/plugins/bookmarkify/facebook.png)
![[MySpace]](http://pirate-king.com/wp-content/plugins/bookmarkify/myspace.png)
![[Sphere]](http://pirate-king.com/wp-content/plugins/bookmarkify/sphere.png)
![[StumbleUpon]](http://pirate-king.com/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://pirate-king.com/wp-content/plugins/bookmarkify/technorati.png)
![[Windows Live]](http://pirate-king.com/wp-content/plugins/bookmarkify/windowslive.png)
![[Email]](http://pirate-king.com/wp-content/plugins/bookmarkify/email.png)

February 19th, 2005 at 10:40 am
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…