{"id":233,"date":"2013-03-08T09:29:05","date_gmt":"2013-03-08T08:29:05","guid":{"rendered":"http:\/\/teske.dk\/?p=233"},"modified":"2013-03-08T09:29:05","modified_gmt":"2013-03-08T08:29:05","slug":"how-do-you-reduce-spam-on-your-blog-in-wordpress","status":"publish","type":"post","link":"http:\/\/teske.dk\/?p=233","title":{"rendered":"How do you reduce spam on your blog in WordPress"},"content":{"rendered":"<p>Ever since I started my blog I have had some problems with spam comments on my blog.<\/p>\n<p>So I just want to tell some of the things i have done, trying to reduce the spam comments on my blog. And maybe get some ideas to fight it even harder.<\/p>\n<p>1. Close comments on Older posts.<br \/>\nThis will reduce the amount of spam you can recieve, unless you write many blog post every day, there will be less blog post for the spammers to comment on.<\/p>\n<p><a href=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/wordpress-close-comments.png\"><img loading=\"lazy\" src=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/wordpress-close-comments.png\" alt=\"wordpress-close-comments\" width=\"550\" height=\"300\" class=\"alignnone size-full wp-image-234\" srcset=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/wordpress-close-comments.png 550w, http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/wordpress-close-comments-300x163.png 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>2. Use Captcha plugin<\/p>\n<p>I have installed the SI CAPTCHA Anti-Spam plugin, and seames to work alright, but there are stil spam comments comming <\/p>\n<p>3. Hold a comment in queue.<br \/>\nI settings, under Comment moderation you can specify weather to put a commetn in queue if there is more than X links in the somment.<br \/>\nI use 2 in this setting<\/p>\n<p><a href=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/Captured1.jpg\"><img loading=\"lazy\" src=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/Captured1.jpg\" alt=\"Captured1\" width=\"1030\" height=\"37\" class=\"alignnone size-full wp-image-236\" srcset=\"http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/Captured1.jpg 1030w, http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/Captured1-300x10.jpg 300w, http:\/\/teske.dk\/wp-content\/uploads\/2013\/03\/Captured1-1024x36.jpg 1024w\" sizes=\"(max-width: 1030px) 100vw, 1030px\" \/><\/a><\/p>\n<p>4. Other plugins<br \/>\nThere are are al lot of other plugins you can use, but i haven&#8217;t tried them all. Askimet is often mentioned, but does it work. Would like to know that befoer i buy it.<\/p>\n<p>Doeas anybody have experience with this.<\/p>\n<p>5. Ban empty referrers<\/p>\n<p>Spam often come from robots, and they will never visit your site, so they don&#8217;t have any refers. so you could use the folowing code to ban them.<\/p>\n<p>Log in to WordPress administration area of your blog and go to \u201cTheme Editor\u201d. Select your blog\u2019s theme and open the functions.php file for editing. Paste the following code:<\/p>\n<p><?php \nfunction verify_comment_referer() {\n    if (!wp_get_referer()) {\n        wp_die( __('You cannot post comment at this time, \nmay be you need to enable referrers in your browser.') );\n    }\n}\nadd_action('check_comment_flood', 'verify_comment_referer'); \n?><\/p>\n<p>Thanks to Internet Techies for the tip.<\/p>\n<p>Other things you could do, but I haven&#8217;t yet.<\/p>\n<p>Ban IP addresses &#8211; Is this a good idea ?<br \/>\nSwitch comment system ?<\/p>\n<p>If anybody have a idea, or have tried any of the above, I would like to hear how they work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since I started my blog I have had some problems with spam comments on my blog. So I just want to tell some of the things i have done, trying to reduce the spam comments on my blog. And &hellip; <a href=\"http:\/\/teske.dk\/?p=233\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[59,77,58],"tags":[30,22,4],"_links":{"self":[{"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/posts\/233"}],"collection":[{"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teske.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233"}],"version-history":[{"count":2,"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":237,"href":"http:\/\/teske.dk\/index.php?rest_route=\/wp\/v2\/posts\/233\/revisions\/237"}],"wp:attachment":[{"href":"http:\/\/teske.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teske.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teske.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}