Skip to content

Releases

exp_request_shield 0.0.1.8

Choose a tag to compare

@se7enxweb se7enxweb released this 24 Nov 08:24
  • 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-INTERNAL refused them as internal files, and a cluster site lost its styles
    whenever it rebuilt its packed files. EXP-PUBLIC-CACHE opens var/<site>/cache/public/ and
    var/<site>/cache/texttoimage/ again; the rest of the cache stays refused. Sites that copied EXP-INTERNAL into a
    rule file of their own should take the new EXP-PUBLIC-CACHE line.
  • Fixed: A page the browser loads itself always gets the HTML check page, never the JSON task. A navigation
    (Sec-Fetch-Mode: navigate, or Sec-Fetch-Dest: document) was answered as an API when its path matched an
    api-path rule 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

Choose a tag to compare

@se7enxweb se7enxweb released this 18 Nov 08:42
  • Fixed: The passkeys, sessions, security, deactivation and two-step sign-in forms are no longer refused with 405.
    EXP-POST let 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, with expect lines for each. Sites that copied EXP-POST into 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) and EXP-AH-INI (admin on a host of its own) take the block back
    at those paths only; on an admin host EXP-AH-SETTINGS also takes EXP-INTERNAL back for /settings/view|edit/**
    (the settings module, not the settings/ folder). Every other address named .ini or .tpl stays 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-PACE answered them 429 past 300 a minute and every call of the
    editor failed. They are left out of EXP-PACE and counted by EXP-ADMIN-API (1800 a minute per visitor); on an
    admin host EXP-AH-PAGES and EXP-AH-API do the same. A frontend's editor calls still count as pages. Sites that
    copied the replace [EXP-PACE] recipe should take the new one.

exp_request_shield 0.0.1.6

Choose a tag to compare

@se7enxweb se7enxweb released this 15 Nov 19:00
  • 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
    every set key with its default and effect, every shipped Exponential rule by ID, the expect line, the log line
    and the signed own requests.
  • Added: A cookbook, doc/cookbook.md: 26 recipes to copy, each with expect examples that request-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 with expect, trace and replay, and refreshing the rule copies after an update.
  • Updated: doc/troubleshooting.md covers 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 visitor 127.0.0.1, which is exempt), shared hosting, a replace that 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 file rules/request-shield.rules ends 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

Choose a tag to compare

@se7enxweb se7enxweb released this 15 Nov 03:19
  • 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), and protect() 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/login failed. Needs Exponential 6.0.15 from 2026-11-14 on (the kernel sends the header).

exp_request_shield 0.0.1.4

Choose a tag to compare

@se7enxweb se7enxweb released this 15 Nov 02:19
  • Updated: The admin rules let the layout editor (Exponential Layouts) save and discard drafts: PUT, PATCH and
    DELETE are allowed for the editor's API only (EXP-ADMIN-SPA below /admin/explayouts_ui_api/, EXP-AH-SPA on
    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 asks content/image, or
    index_image.php for 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
    budget requests is switched off (no-limit requests) and the pace is the budget pages. A site rule file that
    restated the pace the same way (a limit pages of its own) must drop it when it takes this copy.

exp_request_shield 0.0.1.2

Choose a tag to compare

@se7enxweb se7enxweb released this 13 Nov 02:44

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

Choose a tag to compare

@se7enxweb se7enxweb released this 13 Nov 01:03

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, admin4l and admintest_* 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). A restrict rule 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

Choose a tag to compare

@se7enxweb se7enxweb released this 12 Nov 23:35

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.php covers 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 ...) and bin/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.