My instance is getting pummeled by scrapers crawling nonsense. Like issue and pull searches with every single variant of label combinations.

Everything's coming from a shitload of different residential IPs at a very fast cadence.

There's just not that much content on my instance to warrant this traffic. It could be scraped in a minute or two like this if it were legitimate traffic.

all 15 comments

sorted by: hot top controversial new old
[–] 11 points 7 months ago (4 children)

Possibly AI company crawlers. When they came up there was a lot of bad publicity and reports of actively malicious and toxic crawling behavior, including ban evasion.

You can think about locking some url paths behind valid login sessions, or use a proof of work proxy guard.

Anubis is the popular tool for that. I've seen maybe three alternatives, one of which from Cloudflare.

See also related Codeberg ticket (Forgejo instance) https://codeberg.org/forgejo/discussions/issues/319

If you search, you can find various blog posts about these issues. Not just when Forgejo.

  • source
  • hideshow 4 child comments
  • [–] [S] 6 points 7 months ago

    Possibly AI company crawlers. When they came up there was a lot of bad publicity and reports of actively malicious and toxic crawling behavior, including ban evasion.

    That was kind of what I was thinking, but if that's true, they're wasting so much bandwidth and compute. Going through every combination of issue label combinations does not get them any useful code to hoover up. They could've just cloned my repos and be done with it.

    You can think about locking some url paths behind valid login sessions, or use a proof of work proxy guard.

    Anubis is the popular tool for that. I’ve seen maybe three alternatives, one of which from Cloudflare.

    Really don't want to Cloudflare, but Anubis is interesting. If I can't shake these bots, maybe I'll consider this. Thanks.

  • source
  • parent
  • [–] 1 point 7 months ago (2 children)

    If you think it's AI then maybe you can get another AI to write bad code and poison their training data.

  • source
  • parent
  • hideshow 2 child comments
  • [+] 3 points 7 months ago (3 children)
  • [–] [S] 3 points 7 months ago (2 children)

    Having a private instance isn't exactly indicative to open source software, so I don't think that's the way I want to take it. I'd probably move to Codeberg or even GitHub before hosting the entire thing on a private net.

    I also don't think monitoring and blocking are going to help here. This traffic came from so many different IPs that it would be almost impossible to detect and block them all without blocking legitimate traffic. I also really don't want to hook up a Cloudflare-like centralized challenge system to deal with this if I can avoid it.

  • source
  • parent
  • hideshow 2 child comments
  • [+] 4 points 7 months ago (1 child)
  • [–] [S] 6 points 7 months ago

    [...] crazy bot traffic trying everything from MySQL connections, ssh, Wordpress sniffing, xss attacks, you name it.

    oh yeah, I see that on everything. I'm not so worried about those vuln scanners than this overwhelming nonsense traffic that I'm seeing now. This is different, and seemingly pointless.

  • source
  • parent
  • [+] 3 points 7 months ago (5 children)
  • [–] [S] 2 points 7 months ago (4 children)

    Well, at least it doesn't seem targeted, then. Did you do anything to remedy the situation?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 7 months ago (3 children)

    Why do you need a self hosted instance open to the World? Mine is behind a CloudFlare rule that allows connections only from a list of IPs, like my self hosted WireGuard instance.

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 2 points 7 months ago (2 children)

    Why do you need a self hosted instance open to the World?

    Because I can and I want to?

  • source
  • parent
  • hideshow 2 child comments