The previous episode, When you cannot go static yet, stored a static copy of a demo Drupal site with the Quant crawler and set the proxy rule to fail over to the copy when the CMS fails. Failover does not help when the CMS still works and has a critical flaw, because an exploited CMS answers normally. Episode 5 of Securing websites when attackers have AI switches the public site to the copy on purpose, either by hand or with a schedule on the proxy rule, so the edge serves the stored pages and sends no visitor request to the CMS.
Why a schedule matters when attackers have AI
The lead article describes the chain of waits after a disclosure: the upstream fix, the rebuilt packages and images, your builds and your deployments. Mandiant estimates that in 2025 exploitation started, on average, seven days before a patch was available (M-Trends 2026).
Some critical flaws arrive with a date. A vendor announces that a security release will be published at 01:00 on Friday, and from that minute anyone with an AI model can read the fix and build an exploit for the layer it patches. A switch by hand needs someone awake at the right minute, and a schedule does not, because the Quant edge checks it on every request in the rule’s own time zone.
In the php2shell case, two remote code execution flaws in PHP itself, CVE-2026-109618 and CVE-2026-109619, were disclosed on 21 October 2026, and on 26 October CISA added both to its Known Exploited Vulnerabilities catalogue, the list of flaws with evidence of exploitation in the wild.
What the switch does
Quant checks a project’s rules from the top of the list, and the first matching rule whose action ends processing produces the response. If no rule ends processing, Quant serves the project’s static content for the path (how rules are evaluated).
The demo project for the fictional Tolmerra Water Authority has a password rule on the admin paths, and below it the proxy rule “Portal origin”, which sends every other request (*) to the Drupal site. When the proxy rule is disabled, or skipped by its schedule, no other rule answers, so the edge serves the stored copy. The password rule above it still answers on the admin paths.
Put the schedule on the proxy rule itself. A scheduled rule placed below a * proxy rule never runs, because the proxy rule ends processing first.
Switch by hand
On the Rules page, open the menu at the end of the proxy rule’s row and choose Disable. No confirmation dialog opens. The page shows “Saving…” and the status of the rule changes to DISABLED.


Test with
curland a cache-busting query string, so that the request misses the cache and the rules run again.While the copy serves the site, patch the CMS and deploy the fix. The CMS still answers at its own address, so stop it, or turn on origin protection if you host it on Quant Cloud.
When the fix is live, open the menu again and choose Enable. The proxy rule sends requests to the CMS again.
These are the results of the runs on the staging demo project on 24 November 2026:
- Before the switch, the home page came from Drupal, with
server: Apache/2.4.71 (Debian),x-generator: Drupal 11andx-powered-by: PHP/8.4.28. - After the switch, the home page returned
200with alast-modifiedheader from the day of the crawl, and no Drupal or PHP header was present. /node/add, which is not in the copy, returned404. With the rule enabled, Drupal answers it with403./user/loginstill returned401from the password rule above the proxy rule.
Switch on a schedule
A schedule makes a rule apply only at set times, or stop at set times (rule schedules). For a break-glass switch, the schedule goes on the proxy rule with the mode Apply except during, so the rule is skipped inside each window and applies again outside it.
There are two kinds of window, and one rule can have both:
- A one-off range, for a release night. For a fix published at 01:00 on Friday, a range from Friday 00:00 to 09:00 serves the copy from an hour before the release until the morning.
- A weekly window, for the times when nobody on the team is at work, for example every night from 22:00 to 07:00.
To set the schedule in the dashboard:
- Open Traffic > Rules, open the menu at the end of the proxy rule’s row, and choose Edit.
- In the Schedule card, turn on Apply on a schedule.
- In Mode, choose Apply except during.
- In Time zone, check the zone. Every time in the schedule is local to it, and daylight saving is handled.
- Select Add one-off range and enter the start and end, or select Add weekly window, tick the days and enter the start and end.
- Read the Current state line. It says what the rule does now and when that changes, for example “Active now, until Fri 00:00 (Australia/Sydney)”.
- Save the rule. The Rules page then shows a badge on the rule, Scheduled · Active now or Scheduled · Inactive now, with the same summary.



How the scheduled switch shows on the wire
For the film, a test range ran from 12:24 to 12:28 Sydney time on 24 November 2026, and a script sent a request every five seconds:
- At 12:24:00 the responses still came from Drupal, with
quant-rule-schedule: activeand the Drupal headers. - From 12:24:06 the responses had
quant-rule-schedule: inactiveand no Drupal header, so the edge served the copy. - After the range ended at 12:28:00, a request with a fresh query string reached Drupal again at 12:28:01, and a plain request reached it at 12:28:26.
A saved change to a schedule reaches the edge in about 15 seconds, and a window opens on the minute. Leave a little margin when you save a schedule shortly before its first window.
What a schedule does not do
- It does not stop the CMS, which still answers at its own address. If you host on Quant Cloud, turn on origin protection to stop any direct access.
- Login and editing stop during the window. Forms and search keep working if you set them up on the copy first, as When you cannot go static yet shows.
- A path that is not in the copy returns
404during the window, so check in Content that every public page is stored before you rely on it. - A crawl during the window could replace the clean copy with pages from a changed site, so pause the crawl schedules before the window starts.
- A schedule lowers the risk without removing it, because the edge still serves the site and the CMS behind it still needs the fix.
If your editors need to keep working while the public site is on the copy, keep the CMS on a private network that only they can reach, such as a VPN or a fixed range of addresses, and let the Quant module push their changes. From Drupal site to secured shows that setup.
Test it once
Write the schedule into your runbook, and test it once before you need it. A short one-off range a few minutes ahead on a staging project shows the switch and the return in under ten minutes, and the break-glass runbook in the documentation covers every other route to the application, such as edge functions and other projects that proxy to the same CMS.
Next in the series
The next episode, A second lock on the admin areas, puts a password rule at the edge in front of the CMS admin and login paths. The lead article lists every episode.
Share