{"id":118,"date":"2005-07-16T23:30:01","date_gmt":"2005-07-16T21:30:01","guid":{"rendered":"http:\/\/www.maratz.com\/blog\/archives\/2005\/07\/16\/dont-wanna-pusy-in-my-stats\/"},"modified":"2006-04-10T14:41:26","modified_gmt":"2006-04-10T12:41:26","slug":"dont-wanna-pusy-in-my-stats","status":"publish","type":"post","link":"https:\/\/www.maratz.com\/blog\/archives\/2005\/07\/16\/dont-wanna-pusy-in-my-stats\/","title":{"rendered":"Don&#8217;t Wanna Pu*sy in My Stats"},"content":{"rendered":"<p>All right, two posts today, so what? Just checked my referrer stats and found all kind of pu*sies all over the list. There is <a href=\"http:\/\/imdb.com\/title\/tt0116367\/\">black pu*sy, red pu*sy, smelly pu*sy&#8230;<\/a> If you\u2019re sick of all this referrer spam, that can be fixed with a simple <code>.htaccess<\/code> directive:<\/p>\n<pre>\r\n&#60;IfModule mod_security.c>\r\n   SecFilterEngine On\r\n   SecFilterScanPOST On\r\n   SecFilterDefaultAction \"deny,status:412\"\r\n   SecFilterSelective \"HTTP_REFERER\" \"(undesired keyword|undesired keyword|undesired keyword)\"\r\n   SecFilterSelective \"POST_PAYLOAD\" \"(undesired keyword|undesired keyword|undesired keyword)\"\r\n&#60;\/IfModule>\r\n<\/pre>\n<p>Listed keywords should be separated with a pipe (|) character.<\/p>\n<p>Check with your host (run <code>phpinfo()<\/code> on your server)  if it supports <code><a href=\"http:\/\/www.modsecurity.org\/\">mod_security<\/a><\/code>, even though most of them do. This should help you get rid of referrer spam as well as comment spam (for the specified keywords at least). If you want to know more (and I know you want), feel free to ride off to <a href=\"http:\/\/www.onlamp.com\/pub\/a\/apache\/2003\/11\/26\/mod_security.html\">Introducing mod_security<\/a> article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All right, two posts today, so what? Just checked my referrer stats and found all kind of pu*sies all over the list. There is black pu*sy, red pu*sy, smelly pu*sy&#8230; If you\u2019re sick of all this referrer spam, that can be fixed with a simple .htaccess directive: &#60;IfModule mod_security.c> SecFilterEngine On SecFilterScanPOST On SecFilterDefaultAction &#8220;deny,status:412&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":0,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maratz.com\/blog\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}