The NSA and eight major technology companies say: move to post-quantum cryptography now. Check your sites, APIs and SSH. What you need to do →
All articles

Episode 6

A second lock on the admin areas

A password protect rule above the proxy rule asks for a separate user name and password at the Quant edge on the CMS admin and login paths. An IP condition lets the office skip it, and Edge Auth runs your own sign-in check for each person.

Stuart Rowlands 3 December 2026 8 min read

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.

The film

A second lock on the admin areasDemo data shown.

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).

Which rule answers the request

Quant checks the rules from the top. The first rule that answers a request ends the check.

Request
Rule order

Request GET /admin no edge password

  1. 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.

  2. 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
RequestPassword rule first (after Move up)New rule last (as created)
/admin401: 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 password403: Drupal answers 403: the visitor has not signed in to Drupal.403: Drupal answers 403: the visitor has not signed in to Drupal.
/user/password401: 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/login401: 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/login on the list, the password reset form at /user/password stayed open. The guide therefore uses /user/*.
  • Drupal also answers paths under /index.php/. /index.php/user/login served 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.

  1. 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.

  2. In the project, open Rules and select New rule.

  3. 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.

    The Create rule form in the demo project. URL match holds /admin/, /user/, /index.php/* and /admin, and Domain is Any domain

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

    The Action section of the Create rule form. Password protect is selected, Username holds site-editors and Password holds a hidden password, above the Create rule button

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

    The Rules page after Create rule: the proxy rule Portal origin is first and the new password protect rule is second

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

    The Rules page after the move: the password protect rule is first and the proxy rule Portal origin is second, both enabled

  7. Test each path with curl and 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:

  1. On the Rules page, open the menu of the password rule and choose Edit.

  2. In IP restrictions, choose IP address is not one of….

  3. 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.

  4. Select Update rule.

    The IP restrictions field set to IP address is not one of, with the range 203.0.113.0/24 entered, before 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:

  1. Write and publish an auth function. See Auth middleware.

  2. Create the rule as in the steps above, but under Action choose Edge Auth and enter the function’s UUID in Edge Auth UUID.

  3. Move the rule above the proxy rule.

    The Action cards of the rule form with the pointer on Edge Auth, Run an Edge Auth function

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 Authorization header unless you strip it. If Drupal’s HTTP Basic Authentication module is on, Drupal refuses those requests with a 403. To stop that, add Authorization to 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 give admin-ajax.php its 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/add and /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

Share:
More articles