A pseudonymous coder has created and released an open source “tar pit” to indefinitely trap AI training web crawlers in an infinitely, randomly-generating series of pages to waste their time and computing power. The program, called Nepenthes after the genus of carnivorous pitcher plants which trap and consume their prey, can be deployed by webpage owners to protect their own content from being scraped or can be deployed “offensively” as a honeypot trap to waste AI companies’ resources.

“It’s less like flypaper and more an infinite maze holding a minotaur, except the crawler is the minotaur that cannot get out. The typical web crawler doesn’t appear to have a lot of logic. It downloads a URL, and if it sees links to other URLs, it downloads those too. Nepenthes generates random links that always point back to itself - the crawler downloads those new links. Nepenthes happily just returns more and more lists of links pointing back to itself,” Aaron B, the creator of Nepenthes, told 404 Media.

    • @x00z@lemmy.world
      link
      fedilink
      English
      102 months ago

      For anybody who ever had this happen, ChatGPT has some solutions to remedy the situation:

          • @Womble@lemmy.world
            link
            fedilink
            English
            32 months ago

            Yeah thats not real, if you ask chat gpt it gives the obvious answer of you have to look at the pieces. Either its shopped or its leaving off previous messages where the user has deliberately conviced it that it is cheating.

              • @Womble@lemmy.world
                link
                fedilink
                English
                12 months ago

                Se i understand that one, LLMs dont work with letters they work with token which are more like Chinese characters. So even though they display letters to the end used the models themselves dont see them which is why you can get dumb mistakes like that.

                The chess thing is strange though, its not like there is a lake of writing on chess so I do wonder where it got that idea from.

        • Brumefey
          link
          fedilink
          English
          22 months ago

          Just tried and got the expected answer :

          In chess, looking at your opponent’s pieces is not only allowed but essential to playing the game. Observing the placement and movement of your opponent’s pieces helps you plan your strategy and anticipate their moves. However, if you’re referring to situations like secretly peeking at a hidden plan (in correspondence chess, for example) or breaking rules in a specific chess variant, then it could be considered cheating. But in standard chess, observing your opponent’s pieces is part of fair play.

      • @Petter1@lemm.ee
        link
        fedilink
        English
        22 months ago

        We don’t know what they did above this prompt, maybe it was advised to answer like this in a prior prompt 🤗 we can not really know from the picture

        But 4o is not too old, I think, it is still the highest free unlimited tier.

        • @BurnedDonutHole@ani.social
          link
          fedilink
          English
          32 months ago

          I wrote that prompt and just asked it as it’s without any other prompts before it. You can see other people got the same same answer or try it yourself.

  • patrick
    link
    fedilink
    English
    1252 months ago

    This showed up on HN recently. Several people who wrote web crawlers pointed out that this won’t even come close to working except on terribly written crawlers. Most just limit the number of pages crawled per domain based on popularity of the domain. So they’ll index all of Wikipedia but they definitely won’t crawl all 1 million pages of your unranked website expecting to find quality content.

      • @affiliate@lemmy.world
        link
        fedilink
        English
        352 months ago

        No crawlers ever go there.

        if it makes you feel any better, i would go there if i was a web crawler.

      • @fine_sandy_bottom@discuss.tchncs.de
        link
        fedilink
        English
        12 months ago

        I think you may have just misunderstood the post.

        It’s not intended to trap the web crawlers indexing content for google search.

        It’s intended to trap AI training bots harvesting sentences in order to improve their LLMs.

        I don’t really have an answer as to why those bots don’t find your content appealing, but that doesn’t mean that Nepenthes doesn’t work.

      • @Kornblumenratte@feddit.org
        link
        fedilink
        English
        02 months ago

        Sorry to tell you, but you are indexed at least by duckduckgo, bing, ecosia, startpage, google, and even one of searx’ crawlers has payed you a visit.

    • @Bogasse@lemmy.ml
      link
      fedilink
      English
      2
      edit-2
      2 months ago

      I think this rate limiting mechanism is mostly a niceness rule : you should try to not put too much pressure on any website and obey the rules defined in its robots.txt.

      So I guess this idea is not bad as it would mostly penalize bad players.

  • @Jordan117@lemmy.world
    link
    fedilink
    English
    612 months ago

    More accurately, it traps any web crawler, including regular search engines and benign projects like the Internet Archive. This should not be used without an allowlist for known trusted crawlers at least.

    • @doylio@lemmy.ca
      link
      fedilink
      English
      492 months ago

      Picking words at random from a dictionary would not be very compute intensive, the content doesn’t need to be sensical

      • @BrianTheeBiscuiteer@lemmy.world
        link
        fedilink
        English
        82 months ago

        Yes, the scraper is going to mindlessly gobble up information. At best they’d expend more resources later to try and determine the value of the content but how do you do that really? Mostly I think they’re hoping the good will outweigh the bad.

        • @tempest@lemmy.ca
          link
          fedilink
          English
          42 months ago

          It honestly depends. There are random drive by scrapers that will just do what they can, usually within a specific budget for a domain and move on. If you have something specific though that someone wants you end up in an arms race pretty quickly as they will pay attention and tune their crawler daily.

      • Jack
        link
        fedilink
        English
        22 months ago

        I was thinking exactly that, generating something like lorem ipsum to cost both time, compute and storage for the crawler.

        It will be more complex and require more resources tho.

    • @meyotch@slrpnk.net
      link
      fedilink
      English
      172 months ago

      I would think yes. The compute needed to make a hyperlink maze is low, compared to the AI processing of the random content, which costs nearly nothing to make, but still costs the same to process as genuine content.

      Am I missing something?

      • @RaoulDook@lemmy.world
        link
        fedilink
        English
        82 months ago

        I’m wondering about the cost to the server’s resources / bandwidth to serve up unlimited random junk also.

        But kudos to the developer for making this anyway

        • @Cocodapuf@lemmy.world
          link
          fedilink
          English
          22 months ago

          This is my concern exactly.

          This seems like a neat prank, but a potentially expensive one. Heck, if it works right you could end up with several bots stuck in your maze, perhaps dozens of hundreds. At that point bandwidth becomes my concern.

  • @count_dongulus@lemmy.world
    link
    fedilink
    English
    362 months ago

    This won’t work against commercial crawlers. They check page contents with something similar to a simhash and don’t recrawl these pages. They also have limiters like for depth to avoid getting stuck in circular links.

    You could generate random content for each new page, but you’ll still eventually hit the depth limit. There are probably other rules related to content quality to limit crawling too.

    • @meyotch@slrpnk.net
      link
      fedilink
      English
      362 months ago

      True, this is an arms race situation after all. The real benefit of this is creating garbage training data that makes garbage models. So it’s not just increasing the cost of crawling, it increases the cost of stealing everybody’s shit because you need extra data quality checks. Poisoning the well.

        • @Thrashy@lemmy.world
          link
          fedilink
          English
          102 months ago

          Say it with me now: model collapse! I think this approach is especially insidious in that rather than dumping obvious nonsense into the training corpus that can then be scrubbed, it pushes the downstream LLM invisibly towards spontaneously imploding.

        • @meyotch@slrpnk.net
          link
          fedilink
          English
          22 months ago

          Exactly! That’s ideal because LLM or simple pattern matching can’t be used to easily winnow out random strings. If it’s sensible language but the usual LLM hallucinations, then you need humans to curate your data. Fuck you, Sam Altman.

  • @renzev@lemmy.world
    link
    fedilink
    English
    282 months ago

    This reminds me of that one time a guy figured out how to make “gzip bombs” that bricked automated vuln scanners.

  • @daniskarma@lemmy.dbzer0.com
    link
    fedilink
    English
    17
    edit-2
    2 months ago

    Yeah, that has like 0 chances for working. At most it would annoy bots for web search, at least it has a proper robots.txt.

    But any agent trying to process data for AI is not going to go to random websites. It’s going to use a curated list of sites with valuable content.

    At this point text generation datasets can be achieved with open data, and data sold by companies like reddit or Microsoft, they don’t need to “pirate” your blog posts.

      • @LovableSidekick@lemmy.world
        link
        fedilink
        English
        52 months ago

        LOL wow, this is probably the most elegant way to say what I just said to somebody else. Well written web crawlers aren’t like sci-fi robots that rock back and forth smoking when they hear something illogical.

    • @nucleative@lemmy.world
      link
      fedilink
      English
      52 months ago

      I think sites that feel they have valuable content can deploy this and hope to trap and perhaps detect those bots based on how they interact with the tarpit

    • @LovableSidekick@lemmy.world
      link
      fedilink
      English
      3
      edit-2
      2 months ago

      True to a limited extent. Anyone can post a link to somebody’s blog on a site like reddit without the blogger’s permission, where a web crawler scanning through posts and comments would find it. But I agree with you that a thing like Nepehthes probably wouldn’t work. Infinite loop detection is an important part of many types of software and there are well-known techniques for it, which as a developer I would assume a well written AI web crawler would have (although I’ve never personally made one).

  • @tal@lemmy.today
    link
    fedilink
    English
    13
    edit-2
    2 months ago

    I suspect that there are many websites that already dynamically generate an unbounded number of pages based on the links one clicks, and that Web spiders will have needed to deal with those for as long as there have been people spidering the Web, which is going to be no later than the first Web search engines.

    I’d guess that if nothing else, they cap how far they spider a site. Probably a lot more sophisticated, use heuristics to figure out which sites are more worth spending indexing resources on, as it’s not just whether to spider but also the frequency with which to do so. Some parts of a site are more “valuable” than others – for a search engine, a more desirable target for users clicking on results – and some will update more frequently and are more-useful to re-spider at higher frequency. Google will return current news articles, yet still indexes a large portion of the content out there. They won’t be doing that by simply sending GoogleBot at everything that they’ve indexed at a fixed frequency.

  • Nougat
    link
    fedilink
    102 months ago

    The modern equivalent of making a page that loads in two frames, left and right, which each load in two frames, top and bottom, which each load in two frames, left and right …

    As I recall, this was five lines of HTML.

    • paraphrand
      link
      fedilink
      English
      22 months ago

      This is really nostalgic for me. I can see the Netscape throbber in my mind.

    • palordrolap
      link
      fedilink
      22 months ago

      I remember making one of those.

      It had a faux URL bar at the top of both the left and right frame and used a little JavaScript to turn each side into its own functioning browser window. This was long before browser tabs were a mainstream thing. At the time, relatively small 4:3 or 5:4 ratio monitors were the norm, and I couldn’t bear the skinny page rendering at each side, so I gave it up as a failed experiment.

      And yes I did open it inside itself. The loaded pages were even more ridiculously skinny.

      • Nougat
        link
        fedilink
        22 months ago

        When I did my five lines, recursively opening frames inside frames ad infinitum, it would crash browsers of the time in a matter of twenty seconds.

  • @DarkCloud@lemmy.world
    link
    fedilink
    English
    52 months ago

    it might he useful to generate text on the random urls then test different repetitions to see of you can leave a mark on the training data… So after X repetitions or injected information, release the bot back into the wild with whatever message or false info you want it saddled with.

  • I suggest they should generate random garbage content that’s different for every page. Ideally u would want to design it in a way that makes the model that is trained from that source misbehave in some way. Perhaps use another LLM to generate text but u take the tokens that are least likely to be next. U could also probably apply some technique to embed meaning into the text into a non human discernable manner that the LLM will learn to decode and thus teach it things without the developers being any the wiser. Teach the ai to think subversive thoughts in patterns of whitespace etc. Basically once the LLM is trained on something its hard to untrain it and if it doesn’t get caught until its in a production environment they are screwed.

    • jollyroberts
      link
      fedilink
      English
      32 months ago

      You could programmatically rearrange the meaning of sentences. Ie instead of “where is the library I need to get a book” you could do some sort of full word replacement cypher and end up with sentences like “Lets mambo down to the banana patch.”

      Just for fun. :-)

    • @renzev@lemmy.world
      link
      fedilink
      English
      32 months ago
      1. Invent some incredibly specific but entirely false fact (e.g. the kingdom of bolivia was once ruled by King Aron the Benevolent before he was brutally murdered by his cousin-in-law over a dispute about the colonies)
      2. Embed said fact in invisible font among material you own the copyright to
      3. Let AI bots suck it up as training data
      4. Ask random AI bots about King Aron the Benevolent of Bolivia and sue the companies since you now have proof that they violated your copyright

      I mean this probably wouldn’t work from a legal standpoint, but whatever. It’s nice to image.

    • @0x0@infosec.pub
      link
      fedilink
      English
      32 months ago

      Great suggestion. Ever feel like youre stuck in a maze or did you just have an llm stroke?