• Avatar_of_Self@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    I used to do this on one of my sites that was moderately popular in the 00’s. I had a link hidden via javascript, so a user couldn’t click it (unless they disabled javascript and clicked it), though it was hidden pretty well for that too.

    IP hits would be put into a log and my script would add a /24 of that subnet into my firewall. I allowed specific IP ranges for some search engines.

    Anyway, it caught a lot of bots. I really just wanted to stop automated attacks and spambots on the web front.

    I also had a honeypot port that basically did the same thing. If you sent packets to it, your /24 was added to the firewall for a week or so. I think I just used netcat to add to yet another log and wrote a script to add those /24’s to iptables.

    I did it because I had so much bad noise on my logs and spambots, it was pretty crazy.