Apache 2.4 & .htaccess Cloud Scraper Firewall powered by Utilvo EdgeShield.
96
v1.1.0)Production-ready Apache HTTP Server 2.4 (mod_authz_core, mod_remoteip, mod_setenvif) and .htaccess (mod_rewrite) bot firewall configurations powered by Utilvo EdgeShield.
Blocks rotating-IP headless Chromium clusters from Tencent Cloud (AS132203), Alibaba Cloud (AS45102), and Huawei Cloud (AS136907) at the Apache edge while guaranteeing 100% SEO Safe-Harbor for verified Googlebot, Bingbot, and Applebot crawlers.
apache2 & RHEL / AlmaLinux / cPanel httpd)curl -sSL https://utilvo.com/edge-shield/install.sh | sudo bash -s -- --server=apache
apache2ctl or httpd.mod_remoteip, mod_setenvif, mod_authz_core, and mod_rewrite./etc/apache2/conf-available/utilvo-edge-shield.conf (or /etc/httpd/conf.d/utilvo-edge-shield.conf).apache2ctl -t / httpd -t with automatic rollback and sets up daily Threat DB cron synchronization.apache-bot-shield.conf)Unlike regex-heavy RewriteCond chains, Apache 2.4's mod_authz_core compiles Require not ip CIDR prefixes (43.128.0.0/10, 47.74.0.0/15, etc.) into an in-memory radix tree evaluated in microseconds:
<IfModule mod_authz_core.c>
<Location "/">
<RequireAny>
Require env utilvo_seo_safe
<RequireAll>
Require all granted
Require not env utilvo_bad_bot_ua
Require not ip 43.128.0.0/10 101.32.0.0/15 119.28.0.0/16 124.156.0.0/16
Require not ip 43.119.0.0/16 47.74.0.0/15 47.82.0.0/16 47.88.0.0/15 8.208.0.0/12
Require not ip 149.232.0.0/16 159.138.0.0/16 114.119.0.0/16 46.250.0.0/16
</RequireAll>
</RequireAny>
</Location>
</IfModule>
.htaccess)For environments without root access to /etc/apache2, drop .htaccess into public_html/.htaccess to inspect both CF-Connecting-IP and REMOTE_ADDR.
MIT License — Utilvo Security Research.
docker pull utilvo/apache-edge-shield:latest