{"id":165,"date":"2008-07-17T02:27:59","date_gmt":"2008-07-17T07:27:59","guid":{"rendered":"http:\/\/www.jasonmorrison.net\/content\/?p=165"},"modified":"2008-07-21T15:37:28","modified_gmt":"2008-07-21T20:37:28","slug":"how-to-keep-spam-off-your-blog-bulletin-board-or-forum","status":"publish","type":"post","link":"http:\/\/www.jasonmorrison.net\/content\/2008\/how-to-keep-spam-off-your-blog-bulletin-board-or-forum\/","title":{"rendered":"How to keep spam off your blog, bulletin board, or forum"},"content":{"rendered":"<p><a class=\"tt-flickr tt-flickr-Small\" href=\"http:\/\/www.jasonmorrison.net\/content\/photos\/photo\/2661873295\/Columns-of-gears-in-the-difference-engine.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright\" style=\"border: 0pt none; float: right;\" src=\"http:\/\/farm4.static.flickr.com\/3122\/2661873295_2decba5cbf_m.jpg\" border=\"0\" alt=\"Columns of gears in the difference engine\" width=\"180\" height=\"240\" \/><\/a> Spam, it&#8217;s not just <a href=\"http:\/\/www.youtube.com\/watch?v=anwy2MPT5RE\">for breakfast<\/a> and email anymore.\u00a0 Webspam is a huge problem &#8211; if you run a blog or a forum, you&#8217;re probably familiar with the gobs and gobs of gibberish being posted all over the web by spammers.<\/p>\n<p>This humble blog, which only gets a few hundred visitors per day, has had over 17,000 spam comments since I moved over to WordPress last year.\u00a0 Having your site inundated with comment spam can be just <a href=\"http:\/\/www.jasonmorrison.net\/content\/2008\/what-i-did-when-my-site-showed-up-as-a-bad-link\/\">as big a headache as getting hacked<\/a>.\u00a0 No one wants to spend hours every day sorting the good posts from the bad.\u00a0 I&#8217;ve already written about <a href=\"http:\/\/www.jasonmorrison.net\/content\/2008\/fixing-a-%e2%80%98this-site-may-harm-your-computer%e2%80%99-warning-part-3-clearing-a-spammed-forum\/\">how to totally clear out a spammed forum<\/a> and erase all traces of it&#8217;s reputation-marring existence, but the best solution is prevention.<\/p>\n<p>Here are some steps you can take to help prevent spam on your blog or forum.<\/p>\n<p><strong>Keeping Spam off Your Blog<\/strong><\/p>\n<p>This section assumes you&#8217;re hosting your own blog and can add plugins and make configurartion changes, and my examples will be WordPress-heavy because I&#8217;m more familiar with WordPress.<\/p>\n<p><strong>Option 1:\u00a0 Close or restrict comments.<\/strong> Most blogs give you some options to restrict who can comment on articles.\u00a0 In WordPress, you can require that users create accounts to comment under Settings -&gt; General.\u00a0 This might not help too much since I&#8217;ve seen hundreds of automated user accounts created right alongside the spam.<\/p>\n<p>You can also require that comments are approved before they appear &#8211; in WordPress look under Settings -&gt; Discussion.\u00a0 This will stop your blog from being graffitied without your knowledge but also requires manual effort.\u00a0 You can also disallow trackbacks and pingbacks, which are really cool in theory but a major avenue for automated spam.<\/p>\n<p>You can also shut down comments completely, or <a href=\"http:\/\/perishablepress.com\/press\/2008\/07\/08\/wordpress-tip-disable-comments-in-old-posts-via-php\/\">disable comments on old posts<\/a>.\u00a0 At that point you may be throwing the baby out with the bathwater, but it&#8217;s certainly effective.<\/p>\n<p><strong>Option 2:\u00a0 Make sure commenters are real people with a captcha.<\/strong> Even if you&#8217;re not familiar with the term, you&#8217;re familiar with captchas.\u00a0 They&#8217;re the little widgets at the end of a form where you have to decipher some scrambled text from an image.\u00a0 Many blogs have captcha options built in, but if you&#8217;re looking for a captcha plugin be sure to balance usability with security.<\/p>\n<p>I&#8217;ve used the <a href=\"http:\/\/www.herod.net\/dypm\/\">Did You Pass Math plugin<\/a> with some success.\u00a0 Jeff Atwood has used <a href=\"http:\/\/www.codinghorror.com\/blog\/archives\/000712.html\">an extremely simple captcha<\/a> for years on his high-traffic blog.\u00a0 <a href=\"http:\/\/recaptcha.net\/\">Recaptcha is a really cool project<\/a> that helps fight automatic posting and digitize old books at the same time.<\/p>\n<p><strong>Option 3:\u00a0 Use an automatic filtering system.\u00a0<\/strong>If you&#8217;re using WordPress, I have three words for you:\u00a0 <a href=\"http:\/\/akismet.com\/\">Akismet, Akismet, Akismet!<\/a> Seriously, Akismet is so good at automatically marking spammy commetns and trackbacks that it&#8217;s almost scary.\u00a0 If you&#8217;re not using WordPress, you may still be able to <a href=\"http:\/\/akismet.com\/development\/\">find an Akismet plugin for your blogging platform<\/a>.\u00a0 There are other systems worth trying as well such as <a href=\"http:\/\/unknowngenius.com\/blog\/wordpress\/spam-karma\/\">Spam Karma<\/a> but I have less experience with those.<\/p>\n<p><strong>Keeping Spam off Your Forum<\/strong><\/p>\n<p>Again, I&#8217;m assuming you are hosting the forum yourself or can otherwise make config changes.\u00a0 I&#8217;ll use phpBB (version 3) as an example because I&#8217;ve used it in the past.<\/p>\n<p><strong>Option 1:\u00a0 Restrict user accounts.<\/strong> This can be a tough call, because when you start a forum you want to make it as easy as possible for people to join in the discussion.\u00a0 Unfortunately, allowing anyone to register and begin posting without any admin approval also opens the door for spammers.<\/p>\n<p>In phpBB this setting can be found in the Administration Control Panel under Board Configuration -&gt; User Registration Settings.<\/p>\n<p><strong>Option 2:\u00a0 Again with the captchas.<\/strong> Captchas aren&#8217;t 100 percent garanteed to remove spam but they do help.\u00a0 If your forum software doesn&#8217;t have a captcha or a captcha plugin, I would seriously consider upgrading to a version that does or switching forums completely.\u00a0 I know it&#8217;s a huge pain but waking up one morning to find 10,000 spam posts is even worse.<\/p>\n<p>In phpBB3 look under Board Configuration -&gt; User Registration Settings for a setting called &#8220;Enable visual confirmation for registrations&#8221; and make sure it&#8217;s turned on.\u00a0 You can change the details under Board Configuration -&gt; Visual confirmation settings.<\/p>\n<p><strong>Option 3:\u00a0 Try to find an automatic filtering system.<\/strong> This is harder than for blogs.\u00a0 There was an Akismet phpBB mod but it&#8217;s apparently not being maintained.\u00a0 There&#8217;s a workaround involving the Spam Words mod <a href=\"http:\/\/www.eadz.co.nz\/blog\/article\/phpbb-akismet.html\">that you can read about here<\/a>.\u00a0 The <a href=\"http:\/\/www.phpbb.com\/community\/viewtopic.php?t=354376\">Spam Words mod<\/a> might be worth trying on it&#8217;s own too.\u00a0 <a href=\"http:\/\/www.phpbb.com\/community\/viewtopic.php?t=393503\">Here&#8217;s a thread with more options for phpBB2<\/a>, search around and find what&#8217;s available for your forum software.<\/p>\n<p>Even without automated filtering, you can try to slow down the spammers by setting a time limit between posts (most human beings don&#8217;t type as quickly as spambots do).\u00a0 Other options, such as disallowing links and BBCode, are pretty drastic but might make your blog less enticing.<\/p>\n<p>Just for fun:<\/p>\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=anwy2MPT5RE\">Spam, spam, bacon, and Spam<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spam, it&#8217;s not just for breakfast and email anymore.\u00a0 Webspam is a huge problem &#8211; if you run a blog or a forum, you&#8217;re probably familiar with the gobs and gobs of gibberish being posted all over the web by spammers. This humble blog, which only gets a few hundred visitors per day, has had [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[19],"tags":[311,268,309,88,308,111,220,46,310,110],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-blog","tag-akismet","tag-blogging","tag-captchas","tag-how-to","tag-phpbb","tag-plugin","tag-spam","tag-web-development","tag-webspam","tag-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":2,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":172,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/posts\/165\/revisions\/172"}],"wp:attachment":[{"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jasonmorrison.net\/content\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}