5 Quick and Easy Ways To Stop Blog Spam Before It Hits Your Blog
shoemoney
·
·
4 min read
Unless your Lisa Picarille from Revenue Magazine ( check the trackbacks on this whoper )you know that you would have to be a idiot to automatically approve all comments and trackbacks on your blog right? Well Even that is a pain in the ass so I made a list of ways to stop the spam before it gets that far.
I have come up with the 5 easiest and best ways to fight comment spam. These are ways to stop spam from ever getting to your blog.... btw if you dont know what akismet is then stop right now and set that up first. This is just to help you stop the spam from even getting the that level. The first 2 require editing of the .htaccess. The rest are wordpress plugins.
5) Deny Access to No Referrer Requests When humans comment on your blog they have read the post and leave a comment. This of course leaves the referal from your blog. One easy way to block spammers is to check for the referal. Simply paste the lines below into your .htaccess file in the root of your webserver.
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*shoemoney.com.*
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://whereyouwanttosendthem.com/$
What you need to edit:
RewriteCond %{REQUEST_URI} .wp-comments-post\.php* - If you are not running a wordpress blog then you will want to change that to the file that gets the post for comments.
RewriteCond %{HTTP_REFERER} !.*shoemoney.com.* - obviously you want this to be your domain.
RewriteRule (.*) ^http://whereyouwanttosendthem.com/$ - this is where you are redirecting them too. This probably does not matter since the automated spambots will not follow redirects.
Done!
4) Kill tor anonymous proxies
Thats cool people want to surf anonymously and all that but being that about 75% of my comments come from tor proxies its much easier just to block them.
simply go here and copy this to your .htaccess to block all the tor servers
3) Stop Comments On Older Posts
Spammers target older posts for 2 reasons.
A) they show up in search engines and thus they know:
- search engines value the page pr wise
- it could be relavent to the keyword they are trying to spam