v2.9.24
Manage Site Security Pro From Your Scripts and AI Agents
You can now check, buy and cancel Site Security Pro for a WordPress site through the Public API and MCP. Security emails now take you straight to adding Site Security Pro for that site, and never offer it to a site that already pays. This release also brings several security fixes.
🔥 New Features
🆕 Check, Buy and Cancel Site Security Pro From the API and MCP
Before, you could only buy or cancel Site Security Pro in the dashboard. Now your scripts and AI agents can do it too, with the same team permissions and the same price as the dashboard.
Who it’s for: API and MCP users with WordPress sites on paid plans.
- Read a site’s Site Security Pro status: whether it was bought, whether the site is protected, how many open vulnerabilities it has, and the price when you can buy it.
- Buy it monthly or yearly, charged to the card on file. The status shows the price of each term, so an AI agent can quote the price the purchase will actually charge.
- Cancel it. You can’t cancel while a payment for that site is still going through, so you never lose protection you just paid for.
- Buying needs the add-on create permission on the team, the same as in the dashboard (see Security below).
How to set up Site Security Pro
🧑💻 For Developers: Public API and MCP
- Site Security Pro: three new operations on one WordPress site, also available to AI agents as MCP tools:
GET /sites/{uuid}/site-security-proreads the status: bought or not, protection state, open findings count and running tasks. When the caller can buy,term_offersgives themonthlyandyearlyprice.POST /sites/{uuid}/site-security-probuys it. Sendtermasmonthlyoryearly. It answers 202 while activation runs, 402 with the open invoice when the bank needs you to confirm the payment, and 409 when the site is already protected, with nothing billed.DELETE /sites/{uuid}/site-security-procancels it and answers 202. It answers 409 while a purchase for the site is still charging the card.- Reading needs
read:addons. Buying and cancelling needwrite:addons, and buying also needs theaddon:createteam permission. A site that is not WordPress gets 422 and a free plan gets 403. Buying and cancelling allow 10 requests a minute.
See API tokens and MCP access.
🔒 Security
- Add-on purchases: buying Site Security Pro or Cloudflare Enterprise now needs the add-on create permission, the same rule Mailbox and Mail Delivery already follow. Members without it see “You do not have permission to add Site Security Pro.” or “You do not have permission to add Cloudflare Enterprise.”, and nothing is charged. Viewing add-ons, cancelling, settings and existing subscriptions are unchanged. Team roles and permissions
- Password resets: a password reset link now works only for the account that asked for it, even when the same email address also has an account on a white-label brand.
- Temporary root access: temporary root sudo access now ends after about 12 hours, as stated. Before, it stayed until someone removed it. On a server where root access is already permanent, a temporary root key is refused, because its expiry would remove the permanent keys too.
- Cron output: cron job output now shows only files that site’s user is allowed to open.
- Backups: backups now accept only the schedules shown in the dashboard, whether you save from the dashboard or the Public API.
- PHP: changing a site’s PHP version or PHP extensions now accepts only valid choices.
⚡ Improvements
- Security emails: the Get Site Security Pro button now takes you straight to adding Site Security Pro for that site, with the current price (Try Site Security Pro free for 1 month while that offer runs). When several sites are affected, the button opens the Security Center filtered to sites without Site Security Pro.
- Security emails: a site that already pays for Site Security Pro gets no offer. Its security update email says Site Security Pro was protecting the site.
🐞 Bug Fixes
- Site Security Pro: the close (X) button on the failed-activation banner of the Vulnerability Scan page closes the banner again. The banner comes back when you reload the page, because it holds the retry action.
Please note
- Password reset links sent before this update no longer work. Ask for a new one.
- Team members who should keep buying Site Security Pro or Cloudflare Enterprise need the add-on create permission.