{"by":"misterchocolat","descendants":277,"id":46294144,"kids":[46318752,46326827,46320077,46319207,46307364,46322233,46323946,46321131,46322743,46324434,46319582,46325176,46326661,46321302,46321741,46318733,46318908,46322016,46320222,46324045,46320451,46320208,46331257,46318699,46322279,46319435,46326896,46334633,46327066,46318515,46325828,46320180,46324362,46320219,46323688,46323184,46335484,46319515,46326083,46322303,46296481,46324861,46319389,46320946,46324938,46321458,46320638,46324189,46319088,46326679,46331240,46327052,46324322,46324151,46335736,46321787],"score":373,"text":"Alright so if you run a self-hosted blog, you&#x27;ve probably noticed AI companies scraping it for training data. And not just a little (RIP to your server bill).<p>There isn&#x27;t much you can do about it without cloudflare. These companies ignore robots.txt, and you&#x27;re competing with teams with more resources than you. It&#x27;s you vs the MJs of programming, you&#x27;re not going to win.<p>But there is a solution. Now I&#x27;m not going to say it&#x27;s a great solution...but a solution is a solution. If your website contains content that will trigger their scraper&#x27;s safeguards, it will get dropped from their data pipelines.<p>So here&#x27;s what fuzzycanary does: it injects hundreds of invisible links to porn websites in your HTML. The links are hidden from users but present in the DOM so that scrapers can ingest them and say &quot;nope we won&#x27;t scrape there again in the future&quot;.<p>The problem with that approach is that it will absolutely nuke your website&#x27;s SEO. So fuzzycanary also checks user agents and won&#x27;t show the links to legitimate search engines, so Google and Bing won&#x27;t see them.<p>One caveat: if you&#x27;re using a static site generator it will bake the links into your HTML for everyone, including googlebot. Does anyone have a work-around for this that doesn&#x27;t involve using a proxy?<p>Please try it out! Setup is one component or one import.<p>(And don&#x27;t tell me it&#x27;s a terrible idea because I already know it is)<p>package: <a href=\"https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@fuzzycanary&#x2F;core\" rel=\"nofollow\">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;@fuzzycanary&#x2F;core</a>\ngh: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;vivienhenz24&#x2F;fuzzy-canary\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;vivienhenz24&#x2F;fuzzy-canary</a>","time":1765917758,"title":"Show HN: Stop AI scrapers from hammering your self-hosted blog (using porn)","type":"story","url":"https://github.com/vivienhenz24/fuzzy-canary"}