How to Block Bots Without a CDN Using Simple Server Methods
How to Block Some of the Bots
I share nine practical methods to block poorly coded bots without relying on a CDN. These techniques range from enforcing HTTP/2.0 and blackholing data-center IP ranges to filtering suspicious user agents and client signals. While effective for hobby sites, I warn that these aggressive filters may block legitimate visitors like GoogleBot or VPN users, so extensive testing is required before deployment.
People always claim the user-agent is spoofed but in truth it rarely is.