• refalo@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 hours ago

    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.

    • Flipper@feddit.org
      link
      fedilink
      arrow-up
      8
      ·
      2 hours ago

      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.

  • Jankatarch@lemmy.world
    link
    fedilink
    arrow-up
    14
    arrow-down
    2
    ·
    7 hours ago

    Everytime I see anubis I get happy because I know the website has some quality information.

  • unexposedhazard@discuss.tchncs.de
    link
    fedilink
    arrow-up
    51
    ·
    edit-2
    9 hours ago

    Non paywalled link https://archive.is/VcoE1

    It basically boils down to making the browser do some cpu heavy calculations before allowing access. This is no problem for a single user, but for a bot farm this would increase the amount of compute power they need 100x or more.

  • grysbok@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    19
    ·
    9 hours ago

    My archive’s server uses Anubis and after initial configuration it’s been pain-free. Also, I’m no longer getting multiple automated emails a day about how the server’s timing out. It’s great.

    We went from about 3000 unique “pinky swear I’m not a bot” visitors per (iirc) half a day to 20 such visitors. Twenty is much more in-line with expectations.

    • deadcade@lemmy.deadca.de
      link
      fedilink
      arrow-up
      7
      ·
      6 hours ago

      “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.

    • seang96@spgrn.com
      link
      fedilink
      arrow-up
      4
      ·
      10 hours ago

      As long as its not configured improperly. When forgejo devs added it it broke downloading images with Kubernetes for a moment. Basically would need to make sure user agent header for federation is allowed.

  • fuzzy_tinker@lemmy.world
    link
    fedilink
    arrow-up
    58
    ·
    13 hours ago

    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.

  • Kazumara@discuss.tchncs.de
    link
    fedilink
    arrow-up
    9
    ·
    10 hours ago

    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

    • deadcade@lemmy.deadca.de
      link
      fedilink
      arrow-up
      4
      ·
      5 hours ago

      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.

  • medem@lemmy.wtf
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    12 hours ago

    <Stupidquestion>

    What advantage does this software provide over simply banning bots via robots.txt?

    </Stupidquestion>

    • irotsoma@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      11
      ·
      8 hours ago

      TL;DR: You should have both due to the explicit breaking of the robots.txt contract by AI companies.

      AI generally doesn’t obey robots.txt. That file is just notifying scrapers what they shouldn’t scrape, but relies on good faith of the scrapers. Many AI companies have explicitly chosen not no to comply with robots.txt, thus breaking the contract, so this is a system that causes those scrapers that are not willing to comply to get stuck in a black hole of junk and waste their time. This is a countermeasure, but not a solution. It’s just way less complex than other options that just block these connections, but then make you get pounded with retries. This way the scraper bot gets stuck for a while and doesn’t waste as many of your resources blocking them over and over again.

    • kcweller@feddit.nl
      link
      fedilink
      arrow-up
      59
      ·
      11 hours ago

      Robots.txt expects that the client is respecting the rules, for instance, marking that they are a scraper.

      AI scrapers don’t respect this trust, and thus robots.txt is meaningless.

    • medem@lemmy.wtf
      link
      fedilink
      arrow-up
      31
      ·
      10 hours ago

      Well, now that y’all put it that way, I think it was pretty naive from me to think that these companies, whose business model is basically theft, would honour a lousy robots.txt file…

    • thingsiplay@beehaw.org
      link
      fedilink
      arrow-up
      10
      ·
      8 hours ago

      The difference is:

      • robots.txt is a promise without a door
      • Anubis is a physical closed door, that opens up after some time
    • Mwa@thelemmy.club
      link
      fedilink
      English
      arrow-up
      6
      ·
      11 hours ago

      The problem is Ai doesn’t follow robots.txt,so Cloudflare are Anubis developed a solution.

  • not_amm@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    12 hours ago

    I had seen that prompt, but never searched about it. I found it a little annoying, mostly because I didn’t know what it was for, but now I won’t mind. I hope more solutions are developed :D

  • fox2263@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    27
    ·
    12 hours ago

    I’d like to use Anubis but the strange hentai character as a mascot is not too professional

    • sleepydragn1@lemmy.world
      link
      fedilink
      arrow-up
      34
      arrow-down
      1
      ·
      edit-2
      10 hours ago

      I actually really like the developer’s rationale for why they use an anime character as the mascot.

      The whole blog post is worth reading, but the TL;DR is this:

      Of course, nothing is stopping you from forking the software to replace the art assets. Instead of doing that, I would rather you support the project and purchase a license for the commercial variant of Anubis named BotStopper. Doing this will make sure that the project is sustainable and that I don’t burn myself out to a crisp in the process of keeping small internet websites open to the public.

      At some level, I use the presence of the Anubis mascot as a “shopping cart test”. If you either pay me for the unbranded version or leave the character intact, I’m going to take any bug reports more seriously. It’s a positive sign that you are willing to invest in the project’s success and help make sure that people developing vital infrastructure are not neglected.

      • CosmicTurtle0@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        13
        ·
        10 hours ago

        This is a great compromise honestly. More OSS devs need to be paid for their work and if an anime character helps do that, I’m all for it.

    • Captain Beyond@linkage.ds8.zone
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      9 hours ago

      hentai character

      anime != hentai

      I smile whenever I encounter the Anubis character in the wild. She’s holding up the free software internet on her shoulders after all.

    • TimeSquirrel@kbin.melroy.org
      link
      fedilink
      arrow-up
      27
      arrow-down
      3
      ·
      10 hours ago

      Honestly, good. Getting sick of the “professional” world being so goddamn stiff and boring. Push back against sanitized corporate aesthetics.

      • fox2263@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        8 hours ago

        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.

    • TomAwezome@lemmy.world
      link
      fedilink
      arrow-up
      13
      arrow-down
      1
      ·
      12 hours ago

      It’s just image files, you can remove them or replace the images with something more corporate. The author does state they’d prefer you didn’t change the pictures, but the license doesn’t require adhering to their personal request. I know at least 2 sites I’ve visited previously had Anubis running with a generic checkmark or X that replaced the mascot

  • koper@feddit.nl
    link
    fedilink
    arrow-up
    10
    arrow-down
    28
    ·
    13 hours ago

    I get that website admins are desperate for a solution, but Anubis is fundamentally flawed.

    It is hostile to the user, because it is very slow on older hardware andere forces you to use javascript.

    It is bad for the environment, because it wastes energy on useless computations similar to mining crypto. If more websites start using this, that really adds up.

    But most importantly, it won’t work in the end. These scraping tech companies have much deeper pockets and can use specialized hardware that is much more efficient at solving these challenges than a normal web browser.

    • Luke@lemmy.ml
      link
      fedilink
      English
      arrow-up
      21
      ·
      12 hours ago

      she’s working on a non cryptographic challenge so it taxes users’ CPUs less, and also thinking about a version that doesn’t require JavaScript

      Sounds like the developer of Anubis is aware and working on these shortcomings.

      Still, IMO these are minor short term issues compared to the scope of the AI problem it’s addressing.

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        8 hours ago

        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.

    • DaPorkchop_@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      10 hours ago

      It takes like half a second on my Fairphone 3, and the CPU in this thing is absolute dogshit. I also doubt that the power consumption is particularly significant compared to the overhead of parsing, executing and JIT-compiling the 14MiB of JavaScript frameworks on the actual website.

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        2
        ·
        8 hours ago

        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.

        • iopq@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          5 hours ago

          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.

    • BeNotAfraid@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      edit-2
      11 hours ago

      It is basically instantaneous on my 12 year old Keppler GPU Linux Box. It is substantially less impactful on the environment than AI tar pits and other deterrents. 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. Only to then be rendered moot, because it’s an open-source project that someone will just update the cryptographic algorithm for. 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.

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        9 hours ago

        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.

        • deadcade@lemmy.deadca.de
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          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.

        • BeNotAfraid@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          4 hours ago

          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

        • MCasq_qsaCJ_234@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 hours ago

          How will Anubis attack if browsers start acting like manual scrapers used by AI companies to collect information?

          Because OpenAI is planning to release an AI-powered browser, what happens if it ends up using it as another way to collect information?

          Blocking all Chromium browsers, I don’t think, is a good idea.

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        13 hours ago

        On the contrary, I’m hoping for a solution that is better than this.

        Do you disagree with any part of my assessment? How do you think Anubis will work long term?

        • DeathsEmbrace@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          12 hours ago

          Anubis long term actually costs them millions and billions more in energy to run browser and more code. Either way they have to add shit to the bots which costs all the companies money.

    • seang96@spgrn.com
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      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.