I personally use nginx-ultimate-bad-bot-blocker but also custom IP ranges (the entirety of Israel plus GAFAM), and fail2ban.

I saw a dramatic drop in scraper-related traffic, although I still have some offenders trying to access (and failing in doing so).

Which solution do you use?

  • JustTesting@lemmy.hogru.ch
    link
    fedilink
    English
    arrow-up
    8
    ·
    14 hours ago

    anything visiting specific subpages without a reasonable referer is banned

    the login page is whitelisted, anything without a 200 from from login is banned if trying to access other parts (since i only care about logged in users on that app anyways)

    anything in the abuseip list is proactively banned

    certain datacenter ip ranges are blocked wholesale

    too many errors -> ban

    iocaine to make them lost in fake pages based on heuristics like user agent

    honeypot link to the iocaine maze that a regular user wont see

    ratelimits and accompanying bans if exceeded

    blacklist of user agents

    geoip banning

    had to switch to nftables to support the volume of banned ips, iptables would buckle under the load.

    • DarkCloud@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      anything visiting specific subpages without a reasonable referer is banned

      I’m a passer by, won’t that capture people who paste links?

      • JustTesting@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        1
        ·
        54 minutes ago

        It depends on the page. Like no normal user will bookmark or paste a /login url. The only time a user ends up there is when pressing the login button or when they were accidentaly logged out. So it’s a pretty reliable signal. And there’s usualls a lot of pages a user will not go to directly. Like who bookmarks a TOS page?

        • nacho@charla.gamingnight.uy
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 minutes ago

          I don’t know, especially for sites where I don’t care at all for the unauthenticated site, I have bookmarked login pages. Although it’s true that most times I bookmark the dashboard/home/whatever and get redirected to login.

    • Vietconga@scribe.disroot.orgOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      12 hours ago

      After reading this comment I think I will lift muy web camp and move entirely to Gopher. Too much of a hassle for just a tiny blog.

      • JustTesting@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        11 hours ago

        Might I interest you in Gemini? The protocol, not googles llm. It’s like gopher in many ways, just more recent and comfortably active (in that you can read all there is in a day and be done with it, but there is stuff regularily).