I cut bot traffic to my site by over 80% with a simple trap. Last month, my hobby website OpenBenches.org transferred more than 2.5TB of data to visitors. As much as I’d like to think the site is enormously popular, it looks like it is just AI bots endlessly crawling the data and slurping up the images. So I’ve built B to be an indiscriminate tool to eradicate these unwanted parasites. It is…

  • solrize@lemmy.ml
    link
    fedilink
    English
    arrow-up
    13
    ·
    8 hours ago

    Here’s the high level description of how it works.

    • Create a directory like /honeypot/ on your site
    • Put some code in index.php within the directory
    • Add the honeypot as an explicit “Disallow” in robots.txt
    • Include a hidden link to to the honeypot on every page of your site
    • If something accesses that page, write its IP address to your .htaccess
    • The .htaccess bans the IP address from ever accessing your site again.

    But, I thought that scrapers often used proxy networks so they retrieve through huge amounts of IP’s.

  • SharkAttak@kbin.melroy.org
    link
    fedilink
    arrow-up
    13
    ·
    14 hours ago

    Sounds simple and effective, interesting! Is there also an option to send a missile strike to the originating location ?

    • Khanzarate@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 minutes ago

      No you need to compile your own server side missiles, still, but I’m sure somewhere you can find a Linux guide for it.