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
    5
    ·
    2 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.

    • Vietconga@scribe.disroot.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      36 minutes 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.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 hours ago

    I use Anubis. I’ve been impressed with it so far. I attempted to get an LLM to access it, and it gave up, so I consider that a win.

    • Carl@anarchist.nexus
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      I’ve considered something like this, but setting it up always ends with like 47 tabs open for different terms and acronyms I don’t know.

      • Dezorian@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Love Anubis! It took 2 prompts (analyze and explain, then, go for it) with my local AI, this is one the big advantages of using AI for your benefit.

  • Dingaling@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 hours ago

    I gave up five years ago after (mostly Claudebot) saturated my link with millions of requests for the same files. I spent some time converting my websites to statics (Hugo, mostly) and put them on Cloudflare Pages for free.

    Now I don’t care what accesses them, I have no security concerns and they’re faster and more robust than I could ever provide.

    The remaining services I selfhost are behind various layers that block all but personal use.

    • Evotech@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      Same. I use cloudflare for all my public shit. I also use cloudflare for some personal styff i want to be abøe to reach anywhere, like seer etc.

  • fruitycoder@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours ago

    I mean for me, personally, wire guard vpn behind crowdsec (cluster to cluster vpns and then a user vpn). On my user vpn I access my apps through teleport then through the k8s ingress (traefik).

    I don’t see any issues expect people hitting the public side of my vpns.

  • Nik282000@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    4 hours ago

    Anything that gets more that four 404 or 403 errors in 10min gets fail2banned. All my services are behind auth. Basic scanners get caught looking for services I don’t have, anything else gets caught trying to guess creds.

  • 9tr6gyp3@lemmy.world
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    1
    ·
    14 hours ago

    Unplug the power plug and send your devices to ewaste. Even then, its not guaranteed to avoid LLMs.

  • monkeyman512@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    9 hours ago

    I am confident putting everything behind VPN access and not directly exposing it to the Internet will work 100% of the time and continue working in the future. Everything else will be an arms race.

    I know that doesn’t actually help with the kind of solution you are looking for. But any time you can lock it behind VPN access will make it easier to secure.

  • rako@tarte.nuage-libre.fr
    link
    fedilink
    Français
    arrow-up
    2
    ·
    6 hours ago

    I still find the iocaine approach the smartest. Let the primary crawler fetch urls (including and especially the tarpit ones) because they’re low traffic, and block most ips trying to access tarpit urls. Most, because you still want to grab ips that access tarpit urls to block them in the future. No need to block those ips eternally, they’ll only appear a few times, and worst of all they’re actual users’ ips so they might also appear for legitimate traffic.

    I do find it ethically better than blocking ips based on geographical regions. But blocking whole ASNs managed and used by tech companies is worth it. I saw a nice decrease banning Meta at IP level.

  • 4TBHMeCCL@suppo.fi
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    5 hours ago

    I like looking at different lists to see what scrapers are listed (there’s ai.robots.txt, CrawlerCheck, “Ultimate Block List to Stop AI Bots” by Jeff Starr, the list from GEO Toolbox, Known Agents which was previously known as Dark Visitors). There’s also checking logs to see what other user agents (or such) appears.

    Instead of blocking, there’s some people who redirect the scrapers to honeypots or junk sites (do something unique and have a unique URL to have it harder for LLM to block, personally I like doing a url that is randomly generated).

    There’s also “secret botnets” that if you block a certain user-agent, they will reappear under a different IP and user-agent (neocities did a whole Bluesky thread on it, which is worth a read).

    You won’t be able to catch everything, but you can at least make it harder for them.

    • Hal@piefed.nz
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      In my experience if you block areas like this, it slows down temporarily but then you see other SEA and South American countries pop up. You block them they just start proxying through thousands of residential IPs using their botnet of dodgy apps installed on people’s smart TVs.

  • BlueÆther@no.lastname.nz
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 hours ago

    I do the following in order:

    • geoblock China (and some other Asia blocks) and South America via Caddy file
    • Useraget block lists
    • Tarpit any other suspicious via iocane

    Cut impressions from over 200/sec to ~6-8 average

      • BlueÆther@no.lastname.nz
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 hours ago
        {$LEMMY_HOSTNAME} {
                import caddy-common
        
                ######################################
                ########## log files        ##########
                log cn_blocked {
                        output file /data/cn-blocked.log
                        format json
                        no_hostname
                }
        
                ########## iocaine  code ##########
                @read method GET HEAD
                        reverse_proxy @read host.docker.internal:42069 {
                        @fallback status 421
                        handle_response @fallback
                }
        
                ########## cn blocking code ##########
                @blocked {
                        remote_ip 1.0.1.0/24 1.0.2.0/23 1.0.8.0/21 1.0.32.0/19 1.1.0.0/24 1.1.2.0/23 1.1.4.0/22 1.1.8.0/21 1.1.16.0/20 1.1.32.0/19 1.2.0.0/23 1.2.2.0/24 1.2.4.0/22 1.2.>
                        remote_ip 43.254.248.0/21 43.255.0.0/21 43.255.8.0/22 43.255.16.0/22 43.255.48.0/22 43.255.64.0/20 43.255.84.0/22 43.255.96.0/22 43.255.144.0/22 43.255.176.0/22>
                        remote_ip 103.8.8.0/22 103.8.32.0/22 103.8.52.0/22 103.8.68.0/22 103.8.108.0/22 103.8.156.0/22 103.8.200.0/21 103.8.220.0/22 103.9.8.0/22 103.9.24.0/22 103.9.10>
                        remote_ip 103.72.128.0/21 103.72.148.0/22 103.72.172.0/22 103.72.180.0/22 103.72.224.0/19 103.73.0.0/19 103.73.48.0/22 103.73.116.0/22 103.73.120.0/22 103.73.12>
                        remote_ip 103.132.112.0/21 103.132.120.0/22 103.132.160.0/21 103.132.188.0/22 103.132.208.0/21 103.132.234.0/23 103.133.12.0/22 103.133.40.0/22 103.133.128.0/22>
                        remote_ip 103.216.16.0/20 103.216.32.0/20 103.216.64.0/22 103.216.108.0/22 103.216.136.0/22 103.216.152.0/22 103.216.156.0/23 103.216.224.0/21 103.216.240.0/20 >
                        remote_ip 114.68.0.0/16 114.79.64.0/18 114.80.0.0/12 114.96.0.0/13 114.104.0.0/14 114.110.0.0/20 114.110.64.0/18 114.111.0.0/19 114.111.160.0/19 114.112.0.0/14 >
                        remote_ip 125.214.96.0/19 125.215.0.0/18 125.216.0.0/13 125.254.128.0/17 128.108.0.0/16 129.28.0.0/16 129.204.0.0/16 129.211.0.0/16 132.232.0.0/16 134.175.0.0/1>
                        remote_ip 202.9.34.0/23 202.9.48.0/23 202.9.51.0/24 202.9.52.0/23 202.9.54.0/24 202.9.57.0/24 202.9.58.0/23 202.10.64.0/20 202.10.112.0/20 202.12.1.0/24 202.12.>
                        remote_ip 203.6.150.0/23 203.6.157.0/24 203.6.159.0/24 203.6.224.0/20 203.6.248.0/23 203.7.129.0/24 203.7.138.0/23 203.7.147.0/24 203.7.150.0/23 203.7.158.0/24 >
                        remote_ip 203.31.85.0/24 203.31.97.0/24 203.31.105.0/24 203.31.106.0/24 203.31.108.0/23 203.31.124.0/24 203.31.162.0/24 203.31.174.0/24 203.31.177.0/24 203.31.1>
                        remote_ip 223.208.0.0/13 223.220.0.0/15 223.223.176.0/20 223.223.192.0/20 223.240.0.0/13 223.248.0.0/14 223.252.128.0/17 223.254.0.0/16 223.255.0.0/17 223.255.2>
                }
        
                route @blocked {
        #               log_name cn_blocked
                        respond "<h1>Access Denied</h1>" 403
                }
                ##########   cn block ends  ##########
                ######################################
        
  • confusedpuppy@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    12
    ·
    13 hours ago

    I just use a wildcard domain cert and a random higher port number while hiding my SSH port behind WireGuard. The only activity I see is from myself

    I just can’t be bothered to keep up the fight against AI/LLMs/Scrapers. I have my own quiet corner of the internet now while the robots can have rest of the easily accessible internet

    • Carl@anarchist.nexus
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      Similarly, I specifically don’t host anything on my base example.com and www.example.com subdomains. If anything hits either of those, they’re instantly blacklisted because I know they’re a bot. Because none of my services use those subdomains, so I know that only bots are attempting to access them.

      Also, if it attempts to access Wordpress, it gets instantly blocked. None of my services use Wordpress, and lots of malicious bots will probe it for vulnerable extensions. At one point, probes looking for default Wordpress settings were like 80% of my blocked bots.

    • Avid Amoeba@lemmy.ca
      link
      fedilink
      English
      arrow-up
      7
      ·
      13 hours ago

      Can you elaborate on the setup? Is the reverse proxy blocking anything but preconfigured subdomains? Or some cert auth scheme?

      • confusedpuppy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        12 hours ago

        My ISP supplied modem/router doesn’t have a DMZ so I just port forward my reverse proxy port and WireGuard port.

        Then I use Caddy to handle a single wildcard domain cert. Caddy then redirects sub-domains to their respective localhost port number.

        My firewall redirects WireGuard connections to my SSH port.

        I don’t block anything. I only host static pages so I don’t use any authentication. If I hosted services then I would probably use some sort of authentication. Other than that, it’s really simple.

        In the past nearly 2 years I’ve been doing this I have had no one attempt to connect but myself. It’s nice having quiet and easy to parse logs.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    21 minutes ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    ISP Internet Service Provider
    IoT Internet of Things for device controllers
    SSH Secure Shell for remote terminal access
    VPN Virtual Private Network
    VPS Virtual Private Server (opposed to shared hosting)
    k8s Kubernetes container management package
    nginx Popular HTTP server

    [Thread #199 for this comm, first seen 5th Dec 2026, 01:10] [FAQ] [Full list] [Contact] [Source code]