{"id":111,"date":"2006-09-01T08:55:46","date_gmt":"2006-09-01T13:55:46","guid":{"rendered":"http:\/\/www.killersites.com\/blog\/2006\/spamming-spammers\/"},"modified":"2006-09-04T22:17:27","modified_gmt":"2006-09-05T03:17:27","slug":"spamming-spammers","status":"publish","type":"post","link":"https:\/\/www.killersites.com\/blog\/2006\/spamming-spammers\/","title":{"rendered":"Spamming spammers &#8211; with PHP."},"content":{"rendered":"<p>I have a nasty habit that is born out of my petty and self destructive instinct for revenge: I spam spammers.<\/p>\n<p>I&#8217;ve (like many of you,) have been and still am subject to constant spam attack. But not just one &#8216;style&#8217;, I actually get spammed on all fronts:<\/p>\n<ul>\n<li>Email spam.<\/li>\n<li>Blog spam.<\/li>\n<li>Forum spam.<\/li>\n<\/ul>\n<p>&#8230; it seems that the spam world considers me to be a &#8216;spam-licious&#8217; target. <\/p>\n<p><strong>REVENGE IS A DISH BEST SERVED WITH PHP<\/strong><\/p>\n<p>Being an ubernerd &#8230; I got me some options to reflect the pain back to my assailants: php mail() and a for loop!<\/p>\n<p><strong>Check it out:<\/strong><\/p>\n<p>$str = &#8220;Automated response From: Killersites.com &#8211; you (spammer@some_domain.com) have sent us spam messages &#8230; not nice.&#8221;;<\/p>\n<p>for($i=0; $i < 250; $i++) \n{\n$did_send_mail = mail('spammer@some_domain.com','Automated Response From: Killersites.com System', $str);\n}\n\n-\n\nNothing special in the php code here. But it holds a special place in my heart.\n\n\ud83d\ude42\n\nNow whenever I see it as required, I fire off this script to the lil' bastard that spammed me. Their lucky I don't slap another zero or two in the loop count:\n\n250 -> 2500 or even 25000!<\/p>\n<p><strong>DOES IT WORK<\/strong><\/p>\n<p>Well I tend to get much fewer repeat offenders since I&#8217;ve been doing this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a nasty habit that is born out of my petty and self destructive instinct for revenge: I spam spammers. I&#8217;ve (like many of you,) have been and still am subject to constant spam attack. But not just one &#8216;style&#8217;, I actually get spammed on all fronts: Email spam. Blog spam. Forum spam. &#8230; &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/111"}],"collection":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":0,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.killersites.com\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}