{"id":242,"date":"2013-11-20T21:52:02","date_gmt":"2013-11-20T21:52:02","guid":{"rendered":"http:\/\/www.notnull.ro\/log\/?p=242"},"modified":"2013-11-20T21:52:02","modified_gmt":"2013-11-20T21:52:02","slug":"control-spam-on-your-wordpress","status":"publish","type":"post","link":"https:\/\/notnull.ro\/log\/control-spam-on-your-wordpress\/","title":{"rendered":"Control the Spam on Your WordPress Using Keywords"},"content":{"rendered":"<p>Since few weeks on my WP blog I&#8217;m receiving a lot of spam. Some bots are &#8220;commenting&#8221; on my post doing advertising for things like: xanax, valium, tramadol, diazepam. I already get tens of such comments, so I decided that I have to do something. At the beginning I was looking for some WP plugin to solve the problem. The problem with most of them was that they were too complex (I&#8217;m a lazy person), or they just didn&#8217;t work. In the end I&#8217;ve found that all the WordPress blog has already embedded such a feature. On the WP administration panel there is one option:<strong> Settings -&gt; Discussions<\/strong> like bellow.<\/p>\n<p><a href=\"http:\/\/www.notnull.ro\/log\/wp-content\/uploads\/2013\/11\/settings_discussions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-243\" alt=\"settings_discussions\" src=\"http:\/\/www.notnull.ro\/log\/wp-content\/uploads\/2013\/11\/settings_discussions.png\" width=\"299\" height=\"283\" srcset=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2013\/11\/settings_discussions.png 299w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2013\/11\/settings_discussions-24x24.png 24w\" sizes=\"auto, (max-width: 299px) 100vw, 299px\" \/><\/a>\u00a0 On the new page just scroll down and look for <strong>Comment Blacklist<\/strong> , you will notice a textarea input and here you can insert some keywords (one per line). When someone (person or boot) will add new comments if those keywords are present in the comment, the new comment will automatically be moved to\u00a0 <strong>Spam <\/strong>folder. So, I&#8217;ve added the keywords: xanax, valium, tramadol, diazepam; see bellow.\u00a0 In just couple of days, 97 comments were catch into the <strong>Spam <\/strong> folder :D.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/www.notnull.ro\/log\/wp-content\/uploads\/2013\/11\/keywords1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-250\" alt=\"keywords\" src=\"http:\/\/www.notnull.ro\/log\/wp-content\/uploads\/2013\/11\/keywords1.png\" width=\"778\" height=\"331\" srcset=\"https:\/\/notnull.ro\/log\/wp-content\/uploads\/2013\/11\/keywords1.png 778w, https:\/\/notnull.ro\/log\/wp-content\/uploads\/2013\/11\/keywords1-300x127.png 300w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since few weeks on my WP blog I&#8217;m receiving a lot of spam. Some bots are &#8220;commenting&#8221; on my post doing advertising for things like: xanax, valium, tramadol, diazepam. I already get tens of such comments, so I decided that I have to do something. At the beginning I was looking for some WP plugin <a href='https:\/\/notnull.ro\/log\/control-spam-on-your-wordpress\/' class='excerpt-more'>&#8230; Read Full Article<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-image","hentry","category-wordpress-2","post_format-post-format-image","category-74-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":8,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/posts\/242\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notnull.ro\/log\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}