5 Quick and Easy Ways To Stop Blog Spam Before It Hits Your Blog

spamUnless 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.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://whereyouwanttosendthem.com/$ [R=301,L]

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.* [OR] – obviously you want this to be your domain.

RewriteRule (.*) ^http://whereyouwanttosendthem.com/$ [R=301,L] – 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

B) You wont see it. – since the post is old its unlikely that you would ever notice thus greater chance of sneaking it by you.

You have a few options to fix this-

You can manually disallow comments for posts after x amount of days (ick)

If you have wordpress you can download this plugin
which will automatically close off comments and trackbacks after 21 days.

If you have some h4x0r skills you can setup a cron job (thats a automated task to us ninjas) that will edit your database directly checking for past posts and setting the comments and

2) Blacklist Repeat Offenders:

When some spammers do get in you can blacklist there ips so they wont ever be able to again… this process does suck a bit but its a option.

Again edit your .htaccess file:

order allow,deny
deny from 192.168.1.1
deny from 192.168.1.*
allow from all

Remember * represent wildcards

1) Rename your comment file

The default for wordpress is wp-comments-post.php by simply renaming this file to say… wpc.php then changing your theme to reflect the different location for the comment file you will ward off a TON of spammers. This will kill 100% of the automated spam bots.

Your probably saying to yourself… well so what? How could this effect my revenue! Well the answer is all the hardwork and time you have spent building the reputation of your site can be QUICKLY destroyed by giving these spammers NAKID (no link condom) links. You know what they say… Imagine everyone you link to and who they have linked to and who they have linked to …. eek!

A good resource I like to read from time to time is SpamHuntress

About The Author

Comments 114

  1. Tom
  2. Randy
  3. ToddW
  4. Dino
  5. Kyle
  6. BasementGuru
  7. wes
  8. pk
  9. Caleb
  10. Tyler Banfield
  11. Sam
  12. Chip
  13. joey
  14. Stefan Juhl
  15. steve
  16. kevom
  17. karmadude
  18. gunbuster
  19. Daniel Lowe
  20. Brajeshwar
  21. chris
  22. Stu
  23. Arne
  24. FyreGoddess
  25. Markus
  26. David
  27. mitemous
  28. Markus
  29. pdajunkee
  30. Matt Martin
  31. Ken Savage
  32. Don Messerli
  33. kwa
  34. DA
  35. LV.
  36. rZeta
  37. rZeta
  38. Greg
  39. John_Loch
  40. Steve D.
  41. stu
  42. ShoeMoney
  43. Shane
  44. Silver
  45. Lochlin
  46. Super Des
  47. iCan Marketing
  48. jeremy Sabourin
  49. chris
  50. Svetoslav Marinov
  51. coffee
  52. Little Money
  53. mike
  54. Jenny Breen
  55. Sam2K
  56. AdultTube
  57. Gecko Tales
  58. Kurye
  59. Whatever-ishere
  60. gizzmo
  61. Michel
  62. Ramiro
  63. aspeseeKigree
  64. PsyMonk
  65. Blog spam expert
  66. Chuck
    • Suzi
  67. PhillDoc
  68. эротика
  69. FrankP
  70. Quick Loans
  71. софт
  72. hotfiledownloads
  73. Seth Haeuser
  74. Ute Boscarino
  75. Add your Site
  76. Ed Levitra
  77. Tanner
  78. seobridging
  79. mra
  80. Russel Rodrigeuz
  81. Como Sacar Abdominales
  82. Finca Mallorca
  83. kalkulator oc i ac
  84. GolfFitness
  85. Julio
  86. Andres
  87. Gibson
  88. Black Market
  89. Sahil Kotak
  90. Rodney
  91. Brian
  92. James
  93. Inboxnetbiz
  94. monster on ear headphones
  95. Maidul
  96. Aswin Vayiravan
  97. westseyi
  98. Search
  99. ray ban sunglasses
  100. cheap sunglasses
  101. ray bans on sale
  102. louis vuitton outlet
  103. ray ban sunglasses
  104. urgent payday loans
Weapons Of Marketing
My Legal Issues & Downloadable Resources
ACT Affiliate Marketing Method & Download
FaceBook Ninja Marketing Presentation
Interviewing Darren Rowse Of Problogger
Sarah East From PopCrunch – *NSFW* – Most Awkward Interview Ever
I Spill it All To Andrew Warner
Interviewing Penn Jillette @ TC 50
How To Be Successful Making Money Online (keynote)
NamesCon Keynote Talk (Domain Name Focused)
Affiliate Summit 2012 Closing Keynote With Slides
FaceBook Ninja Marketing Presentation