7x Products Exponential Request Shield
← All products/Exponential Request Shield
Open source · GPL · by 7x

// products / Exponential Request Shield

Exponential Request Shield
A small firewall in front of your site.

A small firewall in front of your Exponential site. It decides every request before the kernel starts: scanners, floods and stray form posts are turned away, your page cache stays clean, and bots have to pass an invisible browser check. Real visitors get through in a few millionths of a second, on any hosting, shared hosting included. Enforcing as installed, PHP 7.4 to 8.5, free under the GNU GPL.

Every 7x project is on GitHub: github.com/se7enxweb.

install

Install with Composer

composer require se7enxweb/exp_request_shield

  • Exponential 6.0, PHP 7.4 to 8.5
  • Enforcing as installed, on any hosting
  • GNU GPL v2.0 or any later version

// about Exponential Request Shield

What you get.

Why your site needs one

AI crawlers, scrapers and automated attacks no longer hit only big sites. Every one of their requests makes your site do real work: start the kernel, ask the database, build the page. Enough of them and the site slows down or goes offline, and junk addresses can fill your page cache so that real visitors wait.

Request Shield answers those requests itself, in well under a tenth of a millisecond, before Exponential starts. A request that would cost 100 to 200 ms now costs almost nothing.

What it does, as installed

  • Junk is turned away: scanners hunting for /.env, /wp-login.php, backups or *.tpl files get a 404 before the kernel starts.
  • Your cache stays clean: made-up addresses and parameters are answered, but never stored.
  • Floods slow down: more than 120 pages a minute from one visitor means the browser check, and past the limit a short pause with 429 Too Many Requests.
  • Forms stay where they belong: a POST to a page that takes no form gets 405, a form posted from another website gets 403, and the login, registration and contact forms ask for the browser check first.
  • Attacks stop at the door: SQL, script and path attacks in the query or the headers are refused, and so are networks on the Spamhaus DROP and abuse.ch lists.
  • Search engines stay welcome: Google, Bing and verified crawlers are recognized by their published addresses and never see the check.
  • Your own requests pass: the preloader, the address checks after an upgrade and static publishing sign their requests, and your own scripts can too.

Built for Exponential

  • One line in config.php protects every request under Apache or nginx with PHP-FPM and under Exponential Velocity, before the HTTP cache, so cached pages are protected too.
  • Setup > Request shield in the admin: switch between enforce, monitor and off, watch a chart of the decisions per hour, the rules that decided most and the newest log lines, and check that your rule files compile. In every admin design, in light and dark mode.
  • Readable rules, one per line in a plain text file. Every refusal names the rule that made it, in the log, on the dashboard and in trace.
  • Fail safe: if anything inside the shield breaks, the request reaches your site, marked uncached, and a rule file that does not compile leaves the last good rules in force.
  • No extra server, no subscription, no data sent to anyone. Counters live in APCu, or in plain files on hosting without it.

Open source

The extension is free under the GNU GPL v2.0 or any later version, maintained by 7x on GitHub and released on Packagist. It bundles the request-shield library by JAC Systeme GmbH (CJW Network), which stays under its own MIT License.

Learn

Learn Exponential Request Shield

The docs of a brand live at doc.<the brand's domain>: doc.se7enx.com for 7x, doc.exponential.earth for Exponential.

A question the docs do not answer: Help center · open a ticket · projects and partners in Exponential Centre