Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Open Source
  3. The Open-Source Software Saving the Internet From AI Bot Scrapers

The Open-Source Software Saving the Internet From AI Bot Scrapers

Scheduled Pinned Locked Moved Open Source
opensource
102 Posts 65 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bdonvr@thelemmy.clubB [email protected]

    Ooh can this work with Lemmy without affecting federation?

    D This user is from outside of this forum
    D This user is from outside of this forum
    [email protected]
    wrote last edited by
    #49

    "Yes", for any bits the user sees. The frontend UI can be behind Anubis without issues. The API, including both user and federation, cannot. We expect "bots" to use an API, so you can't put human verification in front of it. These "bots* also include applications that aren't aware of Anubis, or unable to pass it, like all third party Lemmy apps.

    That does stop almost all generic AI scraping, though it does not prevent targeted abuse.

    B 1 Reply Last reply
    7
    • K [email protected]

      It depends on the website's setting. I have the same phone and there was one website where it took more than 20 seconds.

      The power consumption is significant, because it needs to be. That is the entire point of this design. If it doesn't take significant a significant number of CPU cycles, scrapers will just power through them. This may not be significant for an individual user, but it does add up when this reaches widespread adoption and everyone's devices have to solve those challenges.

      I This user is from outside of this forum
      I This user is from outside of this forum
      [email protected]
      wrote last edited by
      #50

      The usage of the phone's CPU is usually around 1w, but could jump to 5-6w when boosting to solve a nasty challenge. At 20s per challenge, that's 0.03 watt hours. You need to see a thousand of these challenges to use up 0.03 kwh

      My last power bill was around 300 kwh or 10,000 more than what your phone would use on those thousand challenges. Or a million times more than what this 20s challenge would use.

      1 Reply Last reply
      1
      • K [email protected]

        Just recently there was a guy on the NANOG List ranting about Anubis being the wrong approach and people should just cache properly then their servers would handle thousands of users and the bots wouldn't matter. Anyone who puts git online has no-one to blame but themselves, e-commerce should just be made cacheable etc. Seemed a bit idealistic, a bit detached from the current reality.

        Ah found it, here

        D This user is from outside of this forum
        D This user is from outside of this forum
        [email protected]
        wrote last edited by
        #51

        Someone making an argument like that clearly does not understand the situation. Just 4 years ago, a robots.txt was enough to keep most bots away, and hosting personal git on the web required very little resources. With AI companies actively profiting off stealing everything, a robots.txt doesn't mean anything. Now, even a relatively small git web host takes an insane amount of resources. I'd know - I host a Forgejo instance. Caching doesn't matter, because diffs berween two random commits are likely unique. Ratelimiting doesn't matter, they will use different IP (ranges) and user agents. It would also heavily impact actual users "because the site is busy".

        A proof-of-work solution like Anubis is the best we have currently. The least possible impact to end users, while keeping most (if not all) AI scrapers off the site.

        I 1 Reply Last reply
        9
        • K [email protected]

          It is basically instantaneous on my 12 year old Keppler GPU Linux Box.

          It depends on what the website admin sets, but I've had checks take more than 20 seconds on my reasonably modern phone. And as scrapers get more ruthless, that difficulty setting will have to go up.

          The Cryptography happening is something almost all browsers from the last 10 years can do natively that Scrapers have to be individually programmed to do. Making it several orders of magnitude beyond impractical for every single corporate bot to be repurposed for.

          At best these browsers are going to have some efficient CPU implementation. Scrapers can send these challenges off to dedicated GPU farms or even FPGAs, which are an order of magnitude faster and more efficient. This is also not complex, a team of engineers could set this up in a few days.

          Only to then be rendered moot, because it's an open-source project that someone will just update the cryptographic algorithm for.

          There might be something in changing to a better, GPU resistant algorithm like argon2, but browsers don't support those natively so you would rely on an even less efficient implementation in js or wasm. Quickly changing details of the algorithm in a game of whack-a-mole could work to an extent, but that would turn this into an arms race. And the scrapers can afford far more development time than the maintainers of Anubis.

          These posts contain links to articles, if you read them you might answer some of your own questions and have more to contribute to the conversation.

          This is very condescending. I would prefer if you would just engage with my arguments.

          D This user is from outside of this forum
          D This user is from outside of this forum
          [email protected]
          wrote last edited by
          #52

          Scrapers can send these challenges off to dedicated GPU farms or even FPGAs, which are an order of magnitude faster and more efficient.

          Lets assume for the sake of argument, an AI scraper company actually attempted this. They don't, but lets assume it anyway.

          The next Anubis release could include (for example), SHA256 instead of SHA1. This would be a simple, and basically transparent update for admins and end users. The AI company that invested into offloading the PoW to somewhere more efficient now has to spend significantly more resources changing their implementation than what it took for the devs and users of Anubis.

          Yes, it technically remains a game of "cat and mouse", but heavily stacked against the cat. One step for Anubis is 2000 steps for a company reimplementing its client in more efficient hardware. Most of the Anubis changes can even be done without impacting the end users at all. That's a game AI companies aren't willing to play, because they've basically already lost. It doesn't really matter how "efficient" the implementation is, if it can be rendered unusable by a small Anubis update.

          1 Reply Last reply
          1
          • fattyfoods@feddit.nlF [email protected]
            This post did not contain any content.
            R This user is from outside of this forum
            R This user is from outside of this forum
            [email protected]
            wrote last edited by [email protected]
            #53

            I don't understand how/why this got so popular out of nowhere... the same solution has already existed for years in the form of haproxy-protection and a couple others... but nobody seems to care about those.

            F L 2 Replies Last reply
            17
            • R [email protected]

              I don't understand how/why this got so popular out of nowhere... the same solution has already existed for years in the form of haproxy-protection and a couple others... but nobody seems to care about those.

              F This user is from outside of this forum
              F This user is from outside of this forum
              [email protected]
              wrote last edited by
              #54

              Probably because the creator had a blog post that got shared around at a point in time where this exact problem was resonating with users.

              It's not always about being first but about marketing.

              johnedwa@sopuli.xyzJ 1 Reply Last reply
              41
              • K [email protected]

                To be clear, I am not minimizing the problems of scrapers. I am merely pointing out that this strategy of proof-of-work has nasty side effects and we need something better.

                These issues are not short term. PoW means you are entering into an arms race against an adversary with bottomless pockets that inherently requires a ton of useless computations in the browser.

                When it comes to moving towards something based on heuristics, which is what the developer was talking about there, that is much better. But that is basically what many others are already doing (like the "I am not a robot" checkmark) and fundamentally different from the PoW that I argue against.

                Go do heuristics, not PoW.

                vendetta9076@sh.itjust.worksV This user is from outside of this forum
                vendetta9076@sh.itjust.worksV This user is from outside of this forum
                [email protected]
                wrote last edited by
                #55

                Youre more than welcome to try and implement something better.

                K 1 Reply Last reply
                1
                • vendetta9076@sh.itjust.worksV [email protected]

                  Youre more than welcome to try and implement something better.

                  K This user is from outside of this forum
                  K This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #56

                  "You criticize society yet you participate in it. Curious."

                  B vendetta9076@sh.itjust.worksV 2 Replies Last reply
                  2
                  • fattyfoods@feddit.nlF [email protected]
                    This post did not contain any content.
                    P This user is from outside of this forum
                    P This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #57

                    I've seen this pop up on websites a lot lately. Usually it takes a few seconds to load the website but there have been occasions where it seemed to hang as it was stuck on that screen for minutes and I ended up closing my browser tab because the website just wouldn't load.

                    Is this a (known) issue or is it intended to be like this?

                    lime@feddit.nuL C 2 Replies Last reply
                    29
                    • B [email protected]

                      At best these browsers are going to have some efficient CPU implementation.

                      Means absolutely nothing in context to what I said, or any information contained in this article. Does not relate to anything I originally replied to.

                      Scrapers can send these challenges off to dedicated GPU farms or even FPGAs, which are an order of magnitude faster and more efficient.

                      Not what's happening here. Be Serious.

                      I would prefer if you would just engage with my arguments.

                      I did, your arguments are bad and you're being intellectually disingenuous.

                      This is very condescending.

                      Yeah, that's the point. Very Astute

                      K This user is from outside of this forum
                      K This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #58

                      If you're deliberately belittling me I won't engage. Goodbye.

                      1 Reply Last reply
                      0
                      • P [email protected]

                        I've seen this pop up on websites a lot lately. Usually it takes a few seconds to load the website but there have been occasions where it seemed to hang as it was stuck on that screen for minutes and I ended up closing my browser tab because the website just wouldn't load.

                        Is this a (known) issue or is it intended to be like this?

                        lime@feddit.nuL This user is from outside of this forum
                        lime@feddit.nuL This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #59

                        anubis is basically a bitcoin miner, with the difficulty turned way down (and obviously not resulting in any coins), so it's inherently random. if it takes minutes it does seem like something is wrong though. maybe a network error?

                        isolatedscotch@discuss.tchncs.deI 1 Reply Last reply
                        21
                        • F [email protected]

                          It’s just not my style ok is all I’m saying and it’s nothing I’d be able to get past all my superiors as a recommendation of software to use.

                          lime@feddit.nuL This user is from outside of this forum
                          lime@feddit.nuL This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #60

                          then have them pay for it.

                          1 Reply Last reply
                          6
                          • fattyfoods@feddit.nlF [email protected]
                            This post did not contain any content.
                            I This user is from outside of this forum
                            I This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #61

                            Open source is also the AI scraper bots AND the internet itself, it is every character in the story.

                            1 Reply Last reply
                            7
                            • bdonvr@thelemmy.clubB [email protected]

                              Ooh can this work with Lemmy without affecting federation?

                              I This user is from outside of this forum
                              I This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #62

                              Yes, it would make lemmy as unsearchable as discord. Instead of unsearchable as pinterest.

                              bdonvr@thelemmy.clubB 1 Reply Last reply
                              3
                              • F [email protected]

                                It’s just not my style ok is all I’m saying and it’s nothing I’d be able to get past all my superiors as a recommendation of software to use.

                                phase@lemmy.8th.worldP This user is from outside of this forum
                                phase@lemmy.8th.worldP This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #63

                                Support, pay, and get it 🙂

                                F 1 Reply Last reply
                                2
                                • F [email protected]

                                  This is fantastic and I appreciate that it scales well on the server side.

                                  Ai scraping is a scourge and I would love to know the collective amount of power wasted due to the necessity of countermeasures like this and add this to the total wasted by ai.

                                  I This user is from outside of this forum
                                  I This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #64

                                  All this could be avoided by making submit photo id to login into a account.

                                  anzo@programming.devA H 2 Replies Last reply
                                  4
                                  • D [email protected]

                                    Someone making an argument like that clearly does not understand the situation. Just 4 years ago, a robots.txt was enough to keep most bots away, and hosting personal git on the web required very little resources. With AI companies actively profiting off stealing everything, a robots.txt doesn't mean anything. Now, even a relatively small git web host takes an insane amount of resources. I'd know - I host a Forgejo instance. Caching doesn't matter, because diffs berween two random commits are likely unique. Ratelimiting doesn't matter, they will use different IP (ranges) and user agents. It would also heavily impact actual users "because the site is busy".

                                    A proof-of-work solution like Anubis is the best we have currently. The least possible impact to end users, while keeping most (if not all) AI scrapers off the site.

                                    I This user is from outside of this forum
                                    I This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #65

                                    This would not be a problem if one bot scraped once, and the result was then mirrored to all on Big Tech's dime (cloudflare, tailscale) but since they are all competing now, they think their edge is going to be their own more better scraper setup and they won't share.

                                    Maybe there should just be a web to torrent bridge sovtge data is pushed out once by the server and tge swarm does the heavy lifting as a cache.

                                    D 1 Reply Last reply
                                    1
                                    • I [email protected]

                                      This would not be a problem if one bot scraped once, and the result was then mirrored to all on Big Tech's dime (cloudflare, tailscale) but since they are all competing now, they think their edge is going to be their own more better scraper setup and they won't share.

                                      Maybe there should just be a web to torrent bridge sovtge data is pushed out once by the server and tge swarm does the heavy lifting as a cache.

                                      D This user is from outside of this forum
                                      D This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #66

                                      No, it'd still be a problem; every diff between commits is expensive to render to web, even if "only one company" is scraping it, "only one time". Many of these applications are designed for humans, not scrapers.

                                      I 1 Reply Last reply
                                      0
                                      • S [email protected]

                                        A javascriptless check was released recently I just read about it. Uses some refresh HTML tag and a delay. Its not default though since its new.

                                        phase@lemmy.8th.worldP This user is from outside of this forum
                                        phase@lemmy.8th.worldP This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #67

                                        The source I assume: challenges/metarefresh.

                                        1 Reply Last reply
                                        0
                                        • F [email protected]

                                          Probably because the creator had a blog post that got shared around at a point in time where this exact problem was resonating with users.

                                          It's not always about being first but about marketing.

                                          johnedwa@sopuli.xyzJ This user is from outside of this forum
                                          johnedwa@sopuli.xyzJ This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by [email protected]
                                          #68

                                          It’s not always about being first but about marketing.

                                          And one has a cute catgirl mascot, the other a website that looks like a blockchain techbro startup.
                                          I'm even willing to bet the amount of people that set up Anubis just to get the cute splash screen isn't insignificant.

                                          jackbydev@programming.devJ 1 Reply Last reply
                                          22
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups