• apftwb@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    19 days ago

    How does fail2ban prevent scrapping? My understanding was that fail2ban works on failed login attempts.

    • mesa@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 days ago

      There’s some premade scripts out there that make it do more. I have it hooked up to nginx and other such logs. Its common enough in login attempts for login portals online, not just ssh. It can work with any grep-able log file.

      I just took two scripts other people have made, verified they soon my mini PC and set it loose. Within about 10 min it caught most scrappers and banned the IPs.