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. Selfhosted
  3. How to combat large amounts of Ai scrapers

How to combat large amounts of Ai scrapers

Scheduled Pinned Locked Moved Selfhosted
selfhosted
39 Posts 27 Posters 0 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.
  • F [email protected]

    I understand, but the shift in user behaviour is significant and I think websites are not taking it into account. If the users move more and more to AI, and since Google introduced AI mode it's only a question of time until it becomes the default, we will see more and more of what we thing are AI crawlers and less and less organic users.

    AI seems to be the new middleman between you and the user, and if you block the middleman, you block the user. For people with hobby websites or established sites it may make sense because people either know of them, or getting more exposure is not a wish or requirement, but for everyone else, it will be painful.

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

    I honestly don't think most people replace search with AI, it will also slowly solve itself when google injects ads into the output.

    1 Reply Last reply
    1
    • F [email protected]

      I just realized an interesting thing - if I use Gemini, and tell it to do deep research, it actually goes to the websites it knows/finds, and looks up the content to provide up-to-date answers. So, some of those AI crawlers are actually not crawlers, but actual users who just use AI instead of coming directly to the site.

      Soo... blocking AI completely could also potentially reduce exposure, especially as more and more people use AI to basically do searches instead of browsing themselves. That would also explain the amount of requests daily - could be simply different users using AI to research for some topic.

      Point is, you should evaluate if the AI requests are just proxies of real users, and blocking AI blocks real users from knowing your site exists.

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

      Porque no los dos?

      There is no functional difference between them scraping you systematically and them coming to you on behalf of user. They're coming to scrape you either way, being asked by someone is just going to make them do it in a smarter fashion.

      Also, if you're not using Gemini, damned if Google.com doesn't search you with it anyway. They want these AIs trained bad, sooner or later almost all searching will be done through AI. There will eventually be no option.

      You are correct that blocking all AI calls well eventually make your search results not work.

      So if you want organic traffic, you have to allow ai scraping eventually. You're just going to get diminishing returns until a point.

      jjlinux@lemmy.mlJ 1 Reply Last reply
      6
      • drunkanroot@sh.itjust.worksD [email protected]

        everytime i check nginx logs its more scrapers then i can count and i could not find any good open source solutions

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

        In my case I use https://www.bunkerweb.io/ as my proxy for that, but there are other tools like for example https://github.com/TecharoHQ/anubis

        drunkanroot@sh.itjust.worksD 1 Reply Last reply
        3
        • R [email protected]

          Second Anubis, just finished by setup yesterday i have it of a oracle cloud frre tier vps, which depending on the domain routes the traffic to services hosted on the vps itself or to my server ar home.
          Relatively easy to setup, blocks most requests with very few false positives (one of which for example it would aggressively challenge by thunderbird trying to reach my baikal instance). I set a bit more aggresive rules than default (i also block googlebot and bingbot, since i received a bit more requests than I'd like). In like 10 hours it straight up denied about 5000 requests from the ai-catchall ruleset (mostly amazonbot) and challenged about 10000, mostly from a block of IPs in singapore, some of the hosts having the user agent of a Macintosh with PowerPC. They all sure love to explore the public repos on my git server.

          I'm in the process of changing servers for an upgrade, the old one still hosting more services while I setup the new one. The old one now does run audibly quiter. I don't even want to think how much electricity went wasted because of those bots

          vegancheesecake@lemmy.blahaj.zoneV This user is from outside of this forum
          vegancheesecake@lemmy.blahaj.zoneV This user is from outside of this forum
          [email protected]
          wrote last edited by
          #25

          You probably don't need me to tell you, but keep good backups. Friend of mine recently had his account nuked without any reason given, and without the possibility of recourse.

          a mail from Oracle, informing about the immediate termination of service, and deletion of all data

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

            If nginx, here's an open-source blocker/honeypot: https://github.com/raminf/RoboNope-nginx

            If you have it set up to be proxied or hosted by Cloudflare, they have their own solution: https://blog.cloudflare.com/declaring-your-aindependence-block-ai-bots-scrapers-and-crawlers-with-a-single-click/

            ikidd@lemmy.worldI This user is from outside of this forum
            ikidd@lemmy.worldI This user is from outside of this forum
            [email protected]
            wrote last edited by [email protected]
            #26

            I wonder why that RoboNope doesn't just make a fail2ban entry for anything that accesses a disallowed url and drop them entirely.

            Actually this look like it would do something similiar, then dumps them to fail2ban after the re-access the honeypot page too many times: https://petermolnar.net/article/anti-ai-nepenthes-fail2ban/

            1 Reply Last reply
            1
            • R [email protected]

              Porque no los dos?

              There is no functional difference between them scraping you systematically and them coming to you on behalf of user. They're coming to scrape you either way, being asked by someone is just going to make them do it in a smarter fashion.

              Also, if you're not using Gemini, damned if Google.com doesn't search you with it anyway. They want these AIs trained bad, sooner or later almost all searching will be done through AI. There will eventually be no option.

              You are correct that blocking all AI calls well eventually make your search results not work.

              So if you want organic traffic, you have to allow ai scraping eventually. You're just going to get diminishing returns until a point.

              jjlinux@lemmy.mlJ This user is from outside of this forum
              jjlinux@lemmy.mlJ This user is from outside of this forum
              [email protected]
              wrote last edited by
              #27

              Eso es correctísimo. I don't want ANY AI in my servers looking for anything, regardless of if they are crawlers or if it's on behalf of some lazy fuck.

              1 Reply Last reply
              1
              • F [email protected]

                I just realized an interesting thing - if I use Gemini, and tell it to do deep research, it actually goes to the websites it knows/finds, and looks up the content to provide up-to-date answers. So, some of those AI crawlers are actually not crawlers, but actual users who just use AI instead of coming directly to the site.

                Soo... blocking AI completely could also potentially reduce exposure, especially as more and more people use AI to basically do searches instead of browsing themselves. That would also explain the amount of requests daily - could be simply different users using AI to research for some topic.

                Point is, you should evaluate if the AI requests are just proxies of real users, and blocking AI blocks real users from knowing your site exists.

                drunkanroot@sh.itjust.worksD This user is from outside of this forum
                drunkanroot@sh.itjust.worksD This user is from outside of this forum
                [email protected]
                wrote last edited by
                #28

                this does not really apply because i run some frontends so there is not really any information that ai needs

                1 Reply Last reply
                0
                • igilq@szmer.infoI [email protected]

                  Well, someone had great idea to use zipbombs. I saw it somewhere but I don’t remember where.

                  drunkanroot@sh.itjust.worksD This user is from outside of this forum
                  drunkanroot@sh.itjust.worksD This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #29

                  Anubis has this built in if it detects bots it turns the diffuclty to impossible

                  1 Reply Last reply
                  0
                  • M [email protected]

                    In my case I use https://www.bunkerweb.io/ as my proxy for that, but there are other tools like for example https://github.com/TecharoHQ/anubis

                    drunkanroot@sh.itjust.worksD This user is from outside of this forum
                    drunkanroot@sh.itjust.worksD This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #30

                    bunkerweb looks intresting

                    1 Reply Last reply
                    0
                    • vegancheesecake@lemmy.blahaj.zoneV [email protected]

                      You probably don't need me to tell you, but keep good backups. Friend of mine recently had his account nuked without any reason given, and without the possibility of recourse.

                      a mail from Oracle, informing about the immediate termination of service, and deletion of all data

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

                      as I heard that's pretty common at oracle, but it's good to spread the word

                      1 Reply Last reply
                      0
                      • F [email protected]

                        I understand, but the shift in user behaviour is significant and I think websites are not taking it into account. If the users move more and more to AI, and since Google introduced AI mode it's only a question of time until it becomes the default, we will see more and more of what we thing are AI crawlers and less and less organic users.

                        AI seems to be the new middleman between you and the user, and if you block the middleman, you block the user. For people with hobby websites or established sites it may make sense because people either know of them, or getting more exposure is not a wish or requirement, but for everyone else, it will be painful.

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

                        So, what I'm reading is, if your "users" are bad (or bots), just get better users.

                        Sounds like a net win.

                        1 Reply Last reply
                        1
                        • drunkanroot@sh.itjust.worksD [email protected]

                          everytime i check nginx logs its more scrapers then i can count and i could not find any good open source solutions

                          gandalf_der_12te@discuss.tchncs.deG This user is from outside of this forum
                          gandalf_der_12te@discuss.tchncs.deG This user is from outside of this forum
                          [email protected]
                          wrote last edited by [email protected]
                          #33

                          What's bothering you?

                          • Is it to give out data for AI training? I guess you can't fundamentally protect against this, except by limiting how much content is provided to each address.
                          • Or is it the resource strain that it causes on your server? In that case i recommend limiting how much a single client / IP address can request in a day.
                          drunkanroot@sh.itjust.worksD 1 Reply Last reply
                          0
                          • drunkanroot@sh.itjust.worksD [email protected]

                            everytime i check nginx logs its more scrapers then i can count and i could not find any good open source solutions

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

                            does anubis not work?

                            drunkanroot@sh.itjust.worksD 1 Reply Last reply
                            3
                            • P [email protected]

                              does anubis not work?

                              drunkanroot@sh.itjust.worksD This user is from outside of this forum
                              drunkanroot@sh.itjust.worksD This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #35

                              i can only get it to protect one container. i have 3 that i need protected and i cant figure out how to run more then one instance of it.

                              1 Reply Last reply
                              1
                              • gandalf_der_12te@discuss.tchncs.deG [email protected]

                                What's bothering you?

                                • Is it to give out data for AI training? I guess you can't fundamentally protect against this, except by limiting how much content is provided to each address.
                                • Or is it the resource strain that it causes on your server? In that case i recommend limiting how much a single client / IP address can request in a day.
                                drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #36

                                its the strain of it i mostly run instances and frontends so the training is not a huge problem

                                gandalf_der_12te@discuss.tchncs.deG 1 Reply Last reply
                                0
                                • F [email protected]

                                  If nginx, here's an open-source blocker/honeypot: https://github.com/raminf/RoboNope-nginx

                                  If you have it set up to be proxied or hosted by Cloudflare, they have their own solution: https://blog.cloudflare.com/declaring-your-aindependence-block-ai-bots-scrapers-and-crawlers-with-a-single-click/

                                  drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                  drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #37

                                  ill check robonope out seems promising

                                  1 Reply Last reply
                                  0
                                  • F [email protected]

                                    Anubis is the name of the tool. Also, Cloudflare just announced they have something against AI scrapers.

                                    drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                    drunkanroot@sh.itjust.worksD This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #38

                                    ive been using Anubis my only issue is i would have to run more then one instance and i dont like cloudflare personaly

                                    1 Reply Last reply
                                    0
                                    • drunkanroot@sh.itjust.worksD [email protected]

                                      its the strain of it i mostly run instances and frontends so the training is not a huge problem

                                      gandalf_der_12te@discuss.tchncs.deG This user is from outside of this forum
                                      gandalf_der_12te@discuss.tchncs.deG This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by [email protected]
                                      #39

                                      the keyword you need is "DDoS protection" i guess

                                      it keeps the server from getting overloaded due to too many requests

                                      1 Reply Last reply
                                      0
                                      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