{"id":348,"date":"2005-05-18T22:25:00","date_gmt":"2005-05-18T14:25:00","guid":{"rendered":"https:\/\/www.azfar.my\/node\/348"},"modified":"2005-05-18T23:01:45","modified_gmt":"2005-05-18T15:01:45","slug":"referrer-spam","status":"publish","type":"post","link":"https:\/\/azfar.my\/home\/2005\/05\/referrer-spam.php","title":{"rendered":"referrer spam"},"content":{"rendered":"<p>hi. i&#8217;m in the mood of writing a tutorial. this time it is about referrer spam. i use awstats to manage my website statistic, bandwidth, ip log and of course the referrer. referer helps me see anybody who&#8217;s linking me in their website so maybe and probably i&#8217;ll link them back. all was okay but now suddenly i got spammed in my referrer list. wtf? those spammer motherfuckers.<\/p>\n<p><img decoding=\"async\" src=\"\/\/static.azfar.my\/blog\/tutor-refspam.gif\"><\/p>\n<p>most of them are about those &#8220;casino&#8221; stuff and yes, &#8220;jeslina hashim&#8221;. at first, they are small in quantity and harmless. but then, they suddenly grow and started to annoy me. i tried this code and put them in my <b>.htaccess<\/b>, hoping that they all go away.<\/p>\n<div class=\"example\">\ndeny from 127.0.<br \/>\ndeny from 69.160.<br \/>\ndeny from 69.175.<br \/>\ndeny from 68.224.<br \/>\ndeny from 68.227.<br \/>\ndeny from someurl.com\n<\/div>\n<p><!--more--><br \/>\ni tried to ban their website url and ip adress. i check back my referrer, still no luck. those code are for people who are using that ip address to view my website. i use google, and i found this code.<\/p>\n<div class=\"example\">\nSetEnvIfNoCase Referer &#8220;.*(tits|badwordshere).*&#8221; BadReferrer<br \/>\norder deny,allow<br \/>\ndeny from env=BadReferrer\n<\/div>\n<p>hey, it works. so, anybody who seach for &#8220;tits&#8221; at google or somewhere and my website comes out, they will be served with a 403 error page if they click my website link. this is fun. i have put quite a long list there, just to keep this buggers away. one thing i noticed that, most of the website and ip visiting originate from australia. i wonder if these people are the real spammers. maybe i should ban <b>.au<\/b> adresses and ip. but then, it is unfair for other people there.<\/p>\n<p>those who want to try this out, make sure you know what is a <b>.htaccess<\/b>. use google if necessary. it would be great if you have an access to your website ssh or you can just create a text file, put all those code in it, upload to your server and rename it to <b>.htaccess<\/b>. any problems, e-mail me. good luck.<\/p>\n<p>references :<\/p>\n<p>&raquo; <a href=\"http:\/\/www.kuro5hin.org\/story\/2005\/2\/14\/02558\/3376\" target=\"_blank\">referrer spam redux<\/a> at kuro5hin.<\/p>\n<p>&raquo; apache <a href=\"http:\/\/httpd.apache.org\/docs\/howto\/htaccess.html\" target=\"_blank\">htaccess tutorial<\/a>.<\/p>\n<p>&raquo; <a href=\"http:\/\/blog.lauralemay.com\/archives\/000324.html\" target=\"_blank\">referrer span control<\/a> by laura lemay.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hi. i&#8217;m in the mood of writing a tutorial. this time it is about referrer spam. i use awstats to manage my website statistic, bandwidth, ip log and of course the referrer. referer helps me see anybody who&#8217;s linking me in their website so maybe and probably i&#8217;ll link them back. all was okay but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"_links":{"self":[{"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":0,"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"wp:attachment":[{"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azfar.my\/home\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}