{"id":1004,"date":"2010-09-11T06:32:44","date_gmt":"2010-09-11T14:32:44","guid":{"rendered":"http:\/\/www.johnscarry.com\/blog\/?p=1004"},"modified":"2011-07-11T08:22:29","modified_gmt":"2011-07-11T16:22:29","slug":"reducing-wordpress-comment-spam","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=1004","title":{"rendered":"Reducing WordPress Comment Spam"},"content":{"rendered":"<p>This blog gets dozens of comment spam. Almost all are trapped by Askimet. The funny thing about them is that few have links in the comment itself. Most have the target link in the commenters URL. I&#8217;m thinking that the best way to stop the comments is to remove the &#8216;Website&#8217; field from the comment form. That field is created by the  comments.php file. For some reason, it is located in the theme folder. To comment out the field, go to wp-content, themes. Then locate the theme you are using on the site. Inside that folder is a file called comments.php.<\/p>\n<p>Look for the word &#8216;Website&#8217;. It is in this block of code.<pre><code class=\"preserve-code-formatting\">\n&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=\n&quot;&lt;?php echo $comment_author_url; ?&gt;&quot; size=&quot;22&quot; tabindex=&quot;3&quot; \/&gt;\n&lt;label for=&quot;url&quot;&gt;&lt;small&gt;Website&lt;\/small&gt;&lt;\/label&gt;&lt;\/p&gt;\n<\/code><\/pre><br \/>\nTo comment it out you need to put this line before the block<pre><code class=\"preserve-code-formatting\">\n&lt;?php \/*\n<\/code><\/pre><br \/>\nand this line after.<pre><code class=\"preserve-code-formatting\">\n*\/ ?&gt;\n<\/code><\/pre><\/p>\n<p>Your code should look like this when you are done.<pre><code class=\"preserve-code-formatting\">\n&lt;?php \/*\n&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=\n&quot;&lt;?php echo $comment_author_url; ?&gt;&quot; size=&quot;22&quot; tabindex=&quot;3&quot; \/&gt;\n&lt;label for=&quot;url&quot;&gt;&lt;small&gt;Website&lt;\/small&gt;&lt;\/label&gt;&lt;\/p&gt;\n*\/ ?&gt;\n<\/code><\/pre><\/p>\n<p>I&#8217;ll report back on how well this works to reduce spam comments.<\/p>\n<p>Update: 2010-10-10 Spam has now changed to link overload spam. Dozens of links in the spam post. None get thru the filter.<\/p>\n<p>Update: 2011-06-20 This is my favorite spam comment of all time. Ironically it\u2019s on this post.<\/p>\n<p class=\"indent italic\">Definitely believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks<\/p>\n<p>Update: 2011-07-11 This is my new favorite spam comment. Again, on this post.<\/p>\n<p class=\"indent italic\">You can make money with this blog but what about a system that lets you make money without even having a website? Basically, this is an underground software that you simply have to see to believe. Imagine making money 24 hours a day without even needing a website. Imagine never having to write articles, pay for clicks, build and maintain websites, and all that. Once you see how this thing works, you will be slapping your forehead. If you are also tired of jumping through all of those hoops or if you are new to Internet marketing and would like to earn some real income online then you should check this out <a href=\"#\">myspammysite<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog gets dozens of comment spam. Almost all are trapped by Askimet. The funny thing about them is that few have links in the comment itself. Most have the target link in the commenters URL. I&#8217;m thinking that the best way to stop the comments is to remove the &#8216;Website&#8217; field from the comment &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=1004\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Reducing WordPress Comment Spam<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1004","post","type-post","status-publish","format-standard","hentry","category-coding"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1004"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}