Repository navigation
Releases
exp_request_shield 0.0.1.8
- Fixed: Packed stylesheets and scripts load on cluster sites. On a cluster site the cluster gateway
(index_cluster.php) serves the public part of the cache, the packed stylesheets and scripts and the text images,
so those requests reach PHP.EXP-INTERNALrefused them as internal files, and a cluster site lost its styles
whenever it rebuilt its packed files.EXP-PUBLIC-CACHEopensvar/<site>/cache/public/and
var/<site>/cache/texttoimage/again; the rest of the cache stays refused. Sites that copiedEXP-INTERNALinto a
rule file of their own should take the newEXP-PUBLIC-CACHEline. - Fixed: A page the browser loads itself always gets the HTML check page, never the JSON task. A navigation
(Sec-Fetch-Mode: navigate, orSec-Fetch-Dest: document) was answered as an API when its path matched an
api-pathrule or its request came through a service worker, so the browser showed the raw JSON challenge instead
of "One moment, please". Background calls (fetch(),XMLHttpRequest) still get JSON.
exp_request_shield 0.0.1.7
- Fixed: The passkeys, sessions, security, deactivation and two-step sign-in forms are no longer refused with 405.
EXP-POSTlet a POST through only at the older account forms, so adding or removing a passkey
(/user/passkeys), signing out other sessions (/user/sessions), the security page (/user/security), deactivating
an account (/user/deactivate) and the second sign-in step and its setup (/user2fa/...) were answered 405. They
are allowed now, withexpectlines for each. Sites that copiedEXP-POSTinto a rule file of their own should
take the new line. - Fixed: Setup > Ini settings and the template views work in the administration.
EXP-INI(*.ini,*.tpl,
anywhere) refused/admin/settings/view/admin/site.ini,/admin/settings/edit/...and
/admin/visual/templateview|templateedit|templatecreate/...with 404: those are module views named after a file,
not the file.EXP-ADMIN-INI(admin as/admin) andEXP-AH-INI(admin on a host of its own) take the block back
at those paths only; on an admin hostEXP-AH-SETTINGSalso takesEXP-INTERNALback for/settings/view|edit/**
(the settings module, not thesettings/folder). Every other address named.inior.tplstays refused. - Fixed: The layout editor no longer meets the pace check while an editor works. Its API
(/admin/explayouts_ui_api/app/api/...) asks 10 to 30 times for one opening, one drag or one publish, and the
admin's ezjscore calls poll; counted as pages,EXP-PACEanswered them 429 past 300 a minute and every call of the
editor failed. They are left out ofEXP-PACEand counted byEXP-ADMIN-API(1800 a minute per visitor); on an
admin hostEXP-AH-PAGESandEXP-AH-APIdo the same. A frontend's editor calls still count as pages. Sites that
copied thereplace [EXP-PACE]recipe should take the new one.
exp_request_shield 0.0.1.6
- Added: A configuration reference,
doc/reference.md: where the configuration lives, the constants,requestshield.ini
and the cronjob part, the files on disk, the rule file format, the order a request is checked in, every rule line and
everysetkey with its default and effect, every shipped Exponential rule by ID, theexpectline, the log line
and the signed own requests. - Added: A cookbook,
doc/cookbook.md: 26 recipes to copy, each withexpectexamples thatrequest-shield test
passes against the shipped rules: host names and URI siteaccesses, the search, downloads and PDFs, help PDFs, login
and registration, forms of your own extensions, the REST API, the administration (office only, other admin
siteaccesses), webhooks, monitoring and uptime checks, signing your own scripts' requests (selfHeader()),
image-heavy pages and busy intranets, page aliases that look like system paths, print layouts and keyword lists,
query parameters, Cloudflare and other proxies, nginx, Apache, LiteSpeed and Velocity in front, several web servers,
shared hosting, a monitor mode rollout, bans, deny and allow lists, own texts and error pages, reading the log,
testing withexpect,traceandreplay, and refreshing the rule copies after an update. - Updated:
doc/troubleshooting.mdcovers 429 for real visitors (what each log line means), 405 for forms, the REST
API and the layout editor, preloaders and own scripts, a proxy, CDN or second web server in front (nginx on the
same machine made every visitor127.0.0.1, which is exempt), shared hosting, areplacethat counted everywhere,
and rule copies that an update does not change. - Updated: The README says what the shield does as installed, rule by rule, and what can be configured, with an
example; the default rule filerules/request-shield.rulesends with the cookbook's recipes, commented out. Its
rules are unchanged: the compiled settings are the same as in 0.0.1.5.
exp_request_shield 0.0.1.5
- Added: The installation's own requests pass: Setup > Preload sites, the address checks after an upgrade and static
publishing sign each request to the site's own pages (X-Exp-Self, an HMAC with a key only the installation has,
valid two minutes and only for that address), andprotect()lets a signed request through before the shield
runs. Before, the pace limit answered the preloader with the browser check (429) after 120 pages, and the
upgrade's check of/user/loginfailed. Needs Exponential 6.0.15 from 2026-11-14 on (the kernel sends the header).
exp_request_shield 0.0.1.4
- Updated: The admin rules let the layout editor (Exponential Layouts) save and discard drafts:
PUT,PATCHand
DELETEare allowed for the editor's API only (EXP-ADMIN-SPAbelow/admin/explayouts_ui_api/,EXP-AH-SPAon
an admin host), and refused everywhere else as before. Without them, "discard draft" in the editor answered
405 ("Something went wrong") on every site with the shield. A site's copy of the admin rules is written once,
when its rule file is made: take these two rules into it, or the new copy. - Added: The dashboard shows how many browser checks were passed (the answers that set a pass), next to how many
were sent, and the activity summary counts both. - Updated: The default rules give images a budget of their own (
EXP-IMAGES, 3000 a minute per visitor, then the
browser check) and leave them out of the pace (EXP-PACE, still the check past 120 pages a minute). Exponential
6.0.15 makes image aliases on demand: a page with hundreds of new images askscontent/image, or
index_image.phpfor a storage image that is not there yet, once per image, and the pace counted each of those
as a page view, so a page of 500 new images got a few hundred answers 429 and never finished loading. The default
budgetrequestsis switched off (no-limit requests) and the pace is the budgetpages. A site rule file that
restated the pace the same way (alimit pagesof its own) must drop it when it takes this copy.
exp_request_shield 0.0.1.2
The default rules include the library's @WordPress set: an Exponential site is no WordPress, so /wp-admin, /wp-login.php, xmlrpc.php, wp-content and the rest are refused (404) before the kernel starts. Before, they reached the site and its own not-found page.
Correction to the 0.0.1.1 notes: a site whose admin has a host of its own does not need absolute paths for the store and the log. Relative paths work with a site block too. What looked like it was the include order: exponential.rules sets a store and a log of its own, so the site's settings must come after it, as the default rule file and doc/configuration.md show.
exp_request_shield 0.0.1.1
The default rules protect every admin siteaccess of a default installation and keep the shield's own API off.
- Admin siteaccesses:
adminui,editor,admin2,admin3,admin4,admin4landadmintest_*are treated like/admin: system URLs and admin modules are allowed, forms save everywhere, and editors pass one browser check per pass. Before, enforce mode refused their system URLs. - API off: the library's JSON API stays off by default (
set api off). Arestrictrule refuses nobody in monitor mode, so a site that switched to monitor had it open. - Rule order and admin hosts: the Exponential rules are included first, so the site's settings win. The rule file and doc/configuration.md show how to set up a site whose admin has a host name of its own.
- Library suffix: the library files keep the suffix .php, now stated and tested. Exponential Velocity turns exit() into its exit signal only in included PHP files.
Upgrade: composer update se7enxweb/exp_request_shield. A site with its own rule file in settings/request-shield/ keeps it; compare it with rules/request-shield.rules.
exp_request_shield 0.0.1.0
The first release of Exponential Request Shield: request-shield in front of an Exponential site, deciding every request before the kernel starts.
- Bundled library: request-shield 0.4.0 (JAC Systeme GmbH, CJW Network), built unchanged from its release tag, plus the same files with their syntax downgraded to PHP 7.4. Runs on PHP 7.4 to 8.5; checks, rule examples and a real web server give the same answers on all seven versions.
- On as installed: one hook in
config.phpcovers PHP-FPM (before the HTTP cache's early exit) and Exponential Velocity (same answers, headers and log as PHP-FPM). The shipped rules enforce: scanners, floods, stray forms and system URLs are refused, the login and the admin's forms ask for a browser check. - Setup > Request shield: switches (pause, enforce, monitor, off; with a backup of the rule file, a compile check and a log of who switched what), a dashboard with the decisions per hour, the log by period and decision, the rule files. For admin4, adminui and the classic admin, light and dark, in English and German.
- Command line:
bin/request-shield(check, test, trace ...) andbin/update-library.sh(rebuilds both library builds from a release tag, byte for byte).
Install: composer require se7enxweb/exp_request_shield, then INSTALL.md.
License: GPL-2.0-or-later; the bundled request-shield files keep their MIT license.