A WordPress site answers /wp-login.php and /xmlrpc.php for anyone who asks, and each page that a visitor opens runs PHP and a database query. The QuantCDN plugin publishes the public pages of a WordPress site to the Quant edge, and WordPress stays with the editors. Episode 2 of Securing websites when attackers have AI follows the plugin’s steps on a WordPress demo site.
Why the public should not reach WordPress
While WordPress serves the public site, any scanner on the internet can send a request to a flaw in PHP, in WordPress core or in a plugin, and by default the login page has the same address on every WordPress site. Verizon’s 2025 Data Breach Investigations Report counts the time to mass exploitation from a CVE’s publication to the day CISA adds it to its Known Exploited Vulnerabilities catalogue, and calls that an upper bound. Across the catalogue, the median was five days to mass exploitation (for CVEs from 2022 onwards), and the median time for organisations to fully remediate was 38 days.
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 CISA added both to that catalogue on 26 October.
On the static copy, no PHP runs and the database is not asked when a visitor opens a page, and /wp-login.php returns page not found. A visitor’s request therefore cannot reach a flaw in WordPress. WordPress still needs its core, theme and plugin updates. If WordPress is on a host that only the editors can reach, an anonymous scanner cannot find it while it waits for them.
What the plugin does
The QuantCDN plugin publishes a static copy of a WordPress site to a Quant project and keeps it in step as editors save their changes. The plugin needs WordPress 6.0 or later on PHP 8.2 or later, and the login that is limited to one project needs plugin version 2.0.4 or later.
- With Login to Quant, you approve the site in the Quant dashboard and choose or create its project. The plugin then limits its login to that one project, so the login cannot read the token of any other project. To change the project, click Change Project and log in again. Disconnect asks Quant to end the login and removes the login and the project token from WordPress.
- Push everything sends posts, pages, media, the theme’s files, listing pages, sitemaps and redirects. After the first push, the plugin pushes each change when an editor saves it.
- For search, the plugin sends a search record with each page that it pushes, and it builds the search page for you. The WordPress search form can then send its searches to that page.
The Corrinvale demo, step by step
The film uses a fictional WordPress site for Corrinvale Regional Libraries and a new Quant project, corrinvale-libraries, with search turned on. The demo site’s endpoint was already set to QuantGov. On a new QuantGov site, the first screen of QuantCDN is a setup wizard. Click Get Started and choose the platform before you click Login to Quant, because the button on Settings uses the saved endpoint, which is QuantCDN until you change it. On a site that is already set up, change the endpoint under Settings > Show manual credentials.
Install and activate the QuantCDN plugin. In WordPress, open Plugins > Add Plugin (Add New Plugin or Add New in older WordPress versions), search for “QuantCDN”, and click Install Now and then Activate. With WP-CLI, run
wp plugin install quant --activate.On QuantCDN > Settings, click Login to Quant. On the dashboard’s authorisation page, tick the organisation. If the project does not exist yet, tick Create a new project for this site: the project name comes from the site address, and the organisation list shows only the organisations where you can add projects. If the project already exists, leave that option off. Click Allow access, which reads Create project and allow access while the option is ticked. The demo project already exists, so the film leaves the option off.
Back in WordPress, choose the organisation and the project and click Use This Project. Next to Internal connectivity, click Test and check that it shows “Working”. The plugin renders each page through WordPress before it pushes it, so the server must reach itself.
On QuantCDN > Content, click Push everything and confirm, or run
wp quant sync --all --process. The plugin queues 186 items and completes 189, because it also pushes the next pages of paginated listings that it finds in the rendered pages. If some items fail, click Retry failed on the QuantCDN Dashboard, or runwp quant queue retryand thenwp quant queue process --all.
The preview domain serves the static copy from the Quant edge. On that domain,
/wp-login.phpreturns the site’s own 404 page, because no WordPress is behind the static copy. The guide shows the 404 status withcurl.
Turn on search for the project in the Quant dashboard: open the project settings, turn on Enable search under Features and click Save project. A project that you create on the authorisation page starts with search off, and the toggle needs a search subscription. Then, on QuantCDN > Search, turn on Keep search records updated, click Save and click Rebuild index. With WP-CLI, run
wp quant search --clear --process, which also empties the index before it sends the records. Click Add search page to add the search page (the film adds two filters), then turn on Send the WordPress search form to a Quant Search page and save. The search form is part of every page, so the plugin says to push everything again.
On the static copy, a search for “storytime” with the Events filter runs against Quant Search, so it needs no PHP either.
For every step, including the project setup, the platform choice and the WP-CLI commands, see the guide Get started with Quant and WordPress.
Limits
- A WordPress form, such as a contact form or the comment form, posts to PHP. The static copy has no PHP, so the form does not work on the static copy (Forms).
- A change to the theme, a menu or a widget is not a post save. After a change that affects every page, click Push everything again.
- On the authorisation page, tick only the organisation that owns the project, or that is to hold the new project. Until you choose the project, the login can read the project token of every project in each organisation that you tick (Log in to Quant).
- To create the project on the authorisation page, you need permission to add projects in the organisation, and the organisation must be active. A trial organisation must first be activated in billing, with a payment card. Otherwise, create the project in the dashboard.
- Disconnect does not change the project token in Quant. If WordPress is compromised, rotate the token on the project’s Integrations page in the dashboard.
- Set the Webserver URL before you move the domain to Quant. If it is empty and the site URL is the public domain, then after the DNS change each push renders the pages from the Quant edge and sends the old static copy back to Quant without an error (Go live).
Lock down the editing host
The editors still sign in to WordPress and it still runs PHP, but after the move no visitor needs it, so it does not need to face the internet. These steps are the checklist that each CMS episode of the series ends with.
- Keep WordPress on a private network that only your editors can reach, for example a VPN or an office network, with its own editorial host name. Then no request from the internet reaches WordPress.
- If editors must reach WordPress over the internet, send their requests through Quant with proxy rules (Maintaining CMS access), and add these steps:
- Put a second lock on the admin paths, with a password rule at the Quant edge above the proxy rules. If a proxy rule sends every request that carries a
wordpress_logged_in_*cookie to WordPress, anyone can send that cookie, so lock every path that the proxy rules send to WordPress. See the guide A second lock on the admin areas, which the episode of the same name follows. - Turn on the WAF on the proxy rules that reach WordPress, in report mode first and then in block mode. The WAF inspects requests on proxy rules only, and it does not inspect the static pages. See the guide Configure WAF for your site, which the episode The WAF, from report to block follows.
- Check the security headers of the project, and add a content security policy (Improve your security headers). The headers episode is not published yet.
- Keep a break-glass plan. When a critical WordPress flaw becomes public, disable the proxy rules that reach WordPress. The public site keeps its static pages, and the editors wait until WordPress is patched. See the guide Break-glass: switch the site to its static copy, which the episode of the same name follows.
- Put a second lock on the admin paths, with a password rule at the Quant edge above the proxy rules. If a proxy rule sends every request that carries a
- Restrict WordPress’s own address at your host, because the edge rules protect only the requests that come through Quant.
- Keep the server’s own requests outside the new lock. The plugin renders each page through the Webserver URL, and WordPress starts WP-Cron with a request to its own
wp-cron.php. If the lock blocks these requests, saved changes stay “Pending” and nothing reaches the edge. The guide shows how to run WP-Cron from a system cron job instead (Secure the editing site). - Turn on two-factor authentication for the WordPress accounts (Security considerations).
The next episode
The next episode, Modernise a stuck site with Quant Studio, covers sites that do not need a CMS or that are stuck on old code, and moves them into Quant Studio. If you run WordPress, you can keep it behind a login and still serve static pages from Quant, as this episode shows. The previous episode is From Drupal site to secured. The lead article lists every episode.
Share