The admin pages and the login page of a CMS run its most privileged code, and by default they have the same address on every site that runs that CMS. Episode 6 of Securing websites when attackers have AI puts a password rule at the Quant edge in front of those paths, above the proxy rule that sends requests to the CMS, so a request must pass the edge before the CMS login page loads. It also shows how to let an office network skip that password, and how to replace the shared password with your own sign-in check.
Why the admin paths matter when attackers have AI
When a proxy rule sends every request to a CMS, anyone who finds the admin pages and the login page can reach them, and they are easy to find. Drupal puts its login form at /user/login and WordPress at /wp-login.php. When a flaw in a login form, a password reset form or an admin page becomes public, every scanner on the internet can send a request to that page.
Mandiant estimates that in 2025 exploitation started, on average, a week before a patch was released (M-Trends 2026), and the lead article describes how AI has made the attacker’s side of that timeline cheaper. A rule at the edge does not fix the flaw. It means that a request through Quant without the edge credentials is turned away by Quant with a 401 and does not reach the CMS, so an anonymous scanner that comes through Quant cannot reach the admin and login pages while the patch is on its way. The CMS login still applies to each request that passes the edge.
The CMS episodes of this series, From Drupal site to secured and From WordPress site to secured, end with this step for sites whose editors reach the CMS through Quant.
What the rule does
A Password protect rule asks for a separate user name and password at the Quant edge. Quant checks rules from the top of the list, and the first matching rule whose action ends processing produces the response. A proxy rule on * answers every request, so the password rule must be above it. A password rule ends processing only when the credentials are missing or wrong. With the correct credentials, Quant checks the next rule, and the proxy rule sends the request to the CMS (A second lock on the admin areas).
Quant checks the rules from the top. The first rule that answers a request ends the check.
Request GET /admin no edge password
Password protect Edge password
Asks for the edge user name and password.
/admin/admin/*/user/*/index.php/*Answers Matches /admin. No edge password: it answers 401 and stops.
Proxy Portal origin
Sends the request to the Drupal site.
*Not checked Never checked: a rule above it answered.
Answered by the Quant edge 401
The Quant edge answers 401 and asks for the edge password. Drupal never sees the request.
Show every result
| Request | Password rule first (after Move up) | New rule last (as created) |
|---|---|---|
| /admin | 401: The Quant edge answers 401 and asks for the edge password. Drupal never sees the request. | 403: Drupal answers 403: the visitor has not signed in to Drupal. |
| /admin with the edge password | 403: Drupal answers 403: the visitor has not signed in to Drupal. | 403: Drupal answers 403: the visitor has not signed in to Drupal. |
| /user/password | 401: The Quant edge answers 401 and asks for the edge password. Drupal never sees the request. | Drupal serves its password reset form. |
| /index.php/user/login | 401: The Quant edge answers 401 and asks for the edge password. Drupal never sees the request. | Drupal serves its login form. |
| / (home page) | 200: Drupal serves the home page. | 200: Drupal serves the home page. |
Source: the film's tests on the staging demo project, and the Protect admin areas guide. The "New rule last" results are derived from how the rules work and the answers Drupal gave in the tests.
The paths to protect
A URL pattern matches the whole path, without regard to letter case, and a * matches one or more characters, including /. This means that /admin/* does not match /admin, and the list needs both.
For Drupal 8 and later, the guide lists /admin, /admin/*, /user/* and /index.php/*. Two of them are there because of a test on the demo site:
- With only
/user/loginon the list, the password reset form at/user/passwordstayed open. The guide therefore uses/user/*. - Drupal also answers paths under
/index.php/./index.php/user/loginserved the login form while the rule listed only/admin,/admin/*and/user/login.
For WordPress, the list is /wp-admin, /wp-admin/*, /wp-login.php, /wp-login.php/*, /xmlrpc.php and /xmlrpc.php/*. Where PHP accepts extra path information (as in the Quant Cloud WordPress image), a path such as /wp-login.php/x can still run the login script, and the pattern /wp-login.php does not match it. Leave /wp-json/* open, because the block editor and many themes and plugins call the REST API from the browser.
The Tolmerra demo, step by step
The film uses a demo project for the fictional Tolmerra Water Authority. Its one proxy rule, “Portal origin”, sends every request to a demo Drupal site.
Choose a user name and a long password for the edge. Do not use the password of any CMS account, use ASCII characters only, and do not put a colon in the user name.
In the project, open Rules and select New rule.
In URL match, type each path for your CMS and press Enter after each one. The film types the four Drupal paths. Keep Domain at Any domain.

Under Action, choose Password protect, enter the user name and the password, and select Create rule.

Quant adds the new rule at the end of the list, under the proxy rule, where it never runs.

Select the rule’s Move up arrow until it is above the proxy rule.

Test each path with
curland a cache-busting query string. A saved rule reaches the edge in about 15 seconds.
On the demo project on 3 December 2026, /admin, /admin/config, /user/login, /user/password and /index.php/user/login without the edge password all returned 401 with a www-authenticate header from Quant, and the home page still returned 200. With the password, the request for /admin went on to Drupal, which answered 403 because the visitor had not signed in to Drupal.
This demo CMS marks its login and admin pages as private, so the edge had cached none of them and the film needs no purge. If your CMS lets the edge cache any of those pages, purge them after you add the rule, because the edge can serve a page that it cached before the rule existed without a check of the rules.
For the full steps, the path tables for both CMSs and the tests, see the guide A second lock on the admin areas.
Let the office skip the edge password
Each condition of a rule must hold for the rule to match. To let a trusted network reach the CMS login without the edge password, add an IP condition to the password rule:
On the Rules page, open the menu of the password rule and choose Edit.
In IP restrictions, choose IP address is not one of….
In IP address is not one of, enter the addresses or CIDR ranges of your office or VPN, and press Enter after each one. The film uses the documentation range
203.0.113.0/24.Select Update rule.

A request from those addresses does not match the password rule, so the next rule, the proxy rule, answers it. Every other address still gets the password prompt. Responses on a rule with an IP condition are marked private, so the edge does not cache them, which suits admin paths.
A sign-in for each person with Edge Auth
Everyone who has the shared password uses the same credentials at the edge, so the edge cannot tell editors apart. For single sign-on or a sign-in for each person, use an Edge Auth rule:
Write and publish an auth function. See Auth middleware.
Create the rule as in the steps above, but under Action choose Edge Auth and enter the function’s UUID in Edge Auth UUID.
Move the rule above the proxy rule.

When the function returns status 201, Quant checks the next rule, and the proxy rule sends the request to the CMS. Any other response from the function goes to the visitor, for example a redirect to your sign-in page. If the function cannot run, because the UUID is wrong, the function is missing or not published, or it is not an auth function, the rule returns 503 and the request does not reach the CMS.
What to check before you rely on it
- The rule protects only the requests that come through Quant. If you host on Quant Cloud, turn on Origin Protection, so every request comes through the edge. For another origin, restrict it to requests through Quant, for example at its firewall.
- The proxy rule sends the edge credentials on to the origin in the
Authorizationheader unless you strip it. If Drupal’s HTTP Basic Authentication module is on, Drupal refuses those requests with a403. To stop that, addAuthorizationto Strip request headers on the proxy rule. API clients that send their own credentials then fail, so the guide gives their paths their own copy of the proxy rule above the password rule. - On WordPress,
/wp-admin/*also covers/wp-admin/admin-ajax.php, which some themes and plugins call for every visitor. After the change, test the public pages that use forms, search or filters. The guide shows how to giveadmin-ajax.phpits own proxy rule. - On Drupal,
/user/*also asks for the edge password on one-time login links and on public user profile pages. Drupal 7 also reads the path from a query string, which a URL pattern cannot match in every spelling, so the guide adds patterns for Drupal 7 and tells you to restrict the origin too. - Some Drupal editing pages, such as
/node/addand/node/*/edit, are outside/admin. Drupal asks for its own login on them, and the guide lists them as optional paths.
The edge lock lowers the risk on the most attacked pages of a CMS. It does not remove it, because the CMS behind the lock still needs its patches.
Next in the series
The next episode, The WAF, from report to block, turns on the Web Application Firewall on the proxy rule that reaches the CMS. It is not published yet. The lead article lists every episode.
Share