• bruh@thelemmy.club
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 days ago

    What sorts of measure you have taken to prevent bots from exhausting your compute and bandwidth

    • Schwim Dandy@piefed.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      10 days ago

      As soon as an IP is determined to be malicious, subsequent pageloads result in a single query to match the IP and they get dumped to a 403 static error.

      With the bots that hammer a site looking for the top 1,000 or so exploitable URLs or partake in speed scraping, this has worked wonders for my server load. I catch them in their 1st-5th page load and the rest just result in basically no effort on the part of the script.

      image