{"id":320,"date":"2005-02-06T12:19:21","date_gmt":"2005-02-06T10:19:21","guid":{"rendered":"http:\/\/www.greenman.co.za\/wordpress\/?p=320"},"modified":"2005-02-06T12:19:21","modified_gmt":"2005-02-06T10:19:21","slug":"cleaning-up-spam-referers-in-b2evolution","status":"publish","type":"post","link":"https:\/\/www.greenman.co.za\/blog\/?p=320","title":{"rendered":"Cleaning up spam referers in b2evolution"},"content":{"rendered":"<p>Finally got around to cleaning the spam out my referer logs today. I&#8217;ve been impressed by how <a href=\"http:\/\/b2evolution.net\">b2evolution<\/a> handles spam comments, and how well-maintained the central blacklist is (you can probably count the spam comments I&#8217;ve had on one hand). Everyone else seems to be disabling anonymous comments, or disabling comments altogether, but so far so good.<\/p>\n<p>However, my referer logs looked a bit like Stalingrad in 1943, so I knuckled down to some cleaning today. It&#8217;s trivial to remove them, and tat the same time they get reported to the central blacklist. <\/p>\n<p>However, to minimise the repeats, you also need to prevent the stats page from being indexed by search engines, which is why the spammers go to all the trouble to fake a referal, so they can be listed on your page and boost their own ranking. The solution is to add:<br \/>\n<code><br \/>\n\/\/ stop search engines from indexing the stats page<br \/>\nif( $disp == 'stats' ) { <br \/>\necho '&lt;meta name=\"robots\" content=\"noindex, nofollow\" \/&gt;'.\"\\n\";<br \/>\n}<br \/>\n<\/code><br \/>\nto _main.php. Full details are available <a href=\"http:\/\/b2evolution.net\/man\/2004\/12\/29\/control_referer_spam_howto\">here<\/a>.<\/p>\n<p>So, perhaps I can risk re-enabling the link to my <a href=\"http:\/\/www.greenman.co.za\/b2evolution\/blogs\/index.php?blog=2&amp;disp=stats\">stats page<\/a> again. I&#8217;m sure there&#8217;s at least one fanatical reader who is validly interested in who links to me \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Finally got around to cleaning the spam out my referer logs today. I&#8217;ve been impressed by how b2evolution handles spam comments, and how well-maintained the central blacklist is (you can probably count the spam comments I&#8217;ve had on one hand). Everyone else seems to be disabling anonymous comments, or disabling comments altogether, but so far&hellip; <a class=\"more-link\" href=\"https:\/\/www.greenman.co.za\/blog\/?p=320\">Continue reading <span class=\"screen-reader-text\">Cleaning up spam referers in b2evolution<\/span><\/a><\/p>\n","protected":false},"author":2,"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":[7],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-metal-technical","entry"],"_links":{"self":[{"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":0,"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greenman.co.za\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}