r/ProWordPress • • 14h ago

How do you let AI agents edit and manage WordPress sites?

5 Upvotes

I've seen a few comments lately where people say they just give the agent SSH access to the server and let it handle updates, content management and fixing whatever is reported broken.

It made me think about how careful people are when they give an agent access to their sites, since that's the first thing I think about.

I ran into this myself while working on an MCP plugin for managing WordPress through the Abilities API (it's not public, so I'm not promoting anything). At first, content changes were only allowed if they could be undone, which required some extra features, and everything was saved as a draft. That got annoying pretty fast, so I dropped the draft step and let the agent publish directly, but kept the other guardrails, like checks for prompt injection.

So I'm wondering where other people draw the line and which guardrails they use. the options I can think of:

  • browser, agent clicks through wp-admin
  • ssh + wp-cli
  • a MCP plugin (Abilities API + MCP adapter, or one of the many "connect Claude to WordPress" plugins)
  • mix (MCP plugin or ssh for content and browser for visual checks)

Which one do you use, and do you let the agent work on production or only on staging?


r/ProWordPress • • 18h ago

[FREE] Security Header Generator for WordPress: The Complete Guide to HTTP Security Headers and Content Security Policy

Thumbnail
kevinpirnie.com
0 Upvotes

Secure WordPress with HTTP security headers, CSP presets, Report-Only mode, Permissions Policy, HSTS, and CORS using Security Header Generator.


r/ProWordPress • • 18h ago

Wordpress is Dead?

0 Upvotes

WordPress is dead? Just because Claude can build a website?

I've been seeing a lot of hate towards WordPress on LinkedIn lately.
And honestly, I don't get it.

Most WordPress performance issues aren't WordPress problems. They're development problems.

Bloated themes, unnecessary plugins, poor coding practices. That's where things go wrong.

Build a proper custom theme, write clean code, and use only what you need. WordPress can perform really well.

But here's my take:
What if we combine WordPress with AI instead of treating them as competitors?

Need a complex animation? Build it with AI and integrate it.

Need a custom feature? Build a plugin with AI assistance.

Want a completely different frontend? Use modern technologies and keep WordPress as your CMS.

And let's not forget: millions of clients already know how to use WordPress. That familiarity has real value.

The future isn't WordPress vs AI. It's WordPress + AI.

We're developers. It's our job to make the most of these tools.
Agree or disagree?


r/ProWordPress • • 21h ago

I tested WooCommerce on Hostinger with 100 simulated shoppers. Is your store still fast a year in?

0 Upvotes

Hey everyone!

We’re just starting out with a WooCommerce shop selling 300–400 online courses. Traffic is moderate so far, but we don’t know how many customers to expect. I’m still within Hostinger’s 30-day refund window.

I’m on the 1-year Unlimited plan with 2 CPU cores, 3 GB RAM, 60 PHP workers, LiteSpeed, LiteSpeed Cache, and Memcached. I ran four k6 tests from two servers (~30,000 requests total).

- 100 users browsing — ~35 ms, 0% errors.

- Mixed traffic (70% browsing, 20% buying, 10% logged-in students) — cart and checkout ~260–270 ms, 0% errors.

- 50 logged-in students — ~205 ms, 0% errors.

- 100 simultaneous buyers — checkout ~3 seconds, 781 orders completed, 25 failed.

Mobile PageSpeed scored 99. I used multiple IPs because the firewall kicked in around 25–30 requests per second per IP.

Long-term Hostinger users, has your store stayed fast for a year or more, or did it slow down as more accounts shared the server or neighbouring sites got busier? I’d appreciate hearing either experience before my refund window closes. Thanks!

Edit: Courses will be hosted on a different VPS on Moodle.


r/ProWordPress • • 2d ago

WP Rocket < 3.24.2 (CVE-2026-125812) is being exploited since Nov 25. Updating doesn't remove files already written, here's what I'd check

21 Upvotes

WP Rocket before 3.24.2 has an unauthenticated path traversal, CVE-2026-125812, CVSS 9.8, that ends with a PHP file written to disk and executed. Patchstack saw the first attempt on Nov 25 and automated campaigns from Nov 26, tens of thousands of blocked attempts in one day.

Only applies if LazyLoad for CSS background images or Self-host Google Fonts is on. The beacon script reports stylesheet and font URLs to the public rocket_beacon AJAX action, WP Rocket fetches them and builds the cache path from the URL path without resolving dot segments or restricting the extension. 3.24.2 (released Nov 19) normalizes the path, only allows .css/.css.json in that cache, adds a realpath containment check and fonts need a real font signature now.

Updating does not remove anything thats already been written.

What I'd check on every site that ran an affected version with one of those features on:

  • version: wp plugin get wp-rocket --field=version
  • PHP files in wp-content/cache, wp-content/uploads, wp-content/wp-rocket-config and directly in wp-content, especially wp-media-*.php. wp-rocket-config has legit PHP config files, so look for unknown names and recent mtimes
  • outbound requests from the web server to nip.io, trycloudflare.com or bare IPs since Nov 25
  • new admin accounts, wp cron event list, wp core verify-checksums
  • found something: rotate DB password and salts, reinstall plugins from a clean source

Note the rocket_beacon action is in the POST body, so a plain access log only shows POST /wp-admin/admin-ajax.php. WAF logs are more usefull here.

Can't update right now: turn off both features. WP Rocket ships a small helper plugin for that which you can roll out with WP-CLI.

Vendor advisory: https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/

Has anyone already found wp-media-*.php or similar on client sites? And how many of you have WP Rocket running on sites where the license expired and updates never arrive?


r/ProWordPress • • 3d ago

What are you using for Gutenberg dev in 2026?

7 Upvotes

I've built WordPress sites for 16 years and ACF was on nearly every one. Since visual editing in Gutenberg has become the norm I'm keen to find out how others have been building sites?

I feel a bit let down by ACF, it does do the job but I find lots of blocks on one page render slow, the interface is also clunkly and looks like crap.

I've built with raw gutenberg as well which is easier now AI can handle a lot of that boilerplate, but I'd prefer a framework or something that at least gives AI some decent rails and something I can update easily as building raw gutenberg means there's more to check between WP updates and more code to maintain.

I'm not just building patterns either, a good chunk of my blocks have some kind of functionality and they all need to be updated easily with a controlled level of versatility.

Thanks!


r/ProWordPress • • 3d ago

Local dev environment with built-in WordPress auditing (outdated plugins, known vulns, core checksums), open source

Post image
0 Upvotes

I build and maintain a lot of WordPress sites, and I got tired of jumping between a local stack and separate tools to check whether sites are up to date. So the local environment I've been building, Localwi

- Audit module that checks every WordPress and ClassicPress project for outdated core, plugins, themes and PHP (wordpress.org + endoflife.date), known vulnerabilities (wpvulnerability.net), file integrity against wordpress.org checksums, compatibility, and whether the site actually answers

- WordPress Nginx template out of the box, with editable rewrite rules or a fully custom server block

- Any PHP version per site, so you can test a client site on 7.4 and another on 8.3 at the same time

- One click adds WordPress cron as a real scheduled task

- Share a local site on a public trycloudflare.com URL (no account). Localwi drops in a temporary must-use plugin so WordPress links use that address, then removes it

- Mailpit to catch outgoing email

The rest: HTTPS per site from a local CA, MySQL/MariaDB, Redis/Memcached, Git status in the project list, cloning a project from a URL. It's a ~5 MB app that runs without admin rights on Windows and macOS

Open source, AGPL v3: https://github.com/butialabs/localwi


r/ProWordPress • • 3d ago

Replacing wp-login.php with OpenID Connect: how do you handle role sync, the other auth paths and IdP outages?

0 Upvotes

I've been working on an OpenID Connect login for WordPress. I'm not linking it, per rule 2. This post is about the design decisions. A few of them were harder than the OIDC flow itself, and I'd like to compare notes with people who run SSO on WordPress in production.

1. Closing the other doors. Once SSO is on, we turn off password logins and resets, registration, XML-RPC auth and Application Passwords. Is there an auth path I'm missing? I'm leaving WP-CLI alone because it has shell access anyway. I'm less sure about other plugins that hook authenticate with their own login methods.

2. Role sync: fail closed? We re-read roles from the identity provider on every login, and the most privileged mapped role wins. A user whose roles map to nothing loses their role and their sessions. If the roles can't be read at all (network error, missing permission), the login is refused rather than falling back to subscriber. The cost is that an IdP outage locks everyone out. Do you accept that? And is "revoked at next login" good enough for you, or do you shorten auth_cookie_expiration or re-check during the session?

3. Linking existing accounts. We link an existing WordPress user by email only when the provider says email_verified. Otherwise the login is refused. Does anyone do it differently, for example with an admin linking accounts by hand?

4. Headless front-ends. Turning off Application Passwords breaks every Next.js build that reads the REST API with Basic Auth. Our replacement is a client_credentials bearer token from the same IdP, mapped to a dedicated low-privilege WordPress user. What do you use on locked-down sites: a JWT plugin, Application Passwords on a service user, or something at the proxy?

5. Break-glass. We have a wp-config.php constant that brings the password form back, plus one-time login links from WP-CLI. The links open a confirmation button instead of logging in straight away, because Slack and WhatsApp preview bots fetch the URL first and use up the link. What do you do when the IdP is down?

I'm mostly interested in what bit you in production.


r/ProWordPress • • 3d ago

The Elephant in the Server Room: Over Half of WordPress Sites Run PHP That's End of Life by January

Thumbnail
adamgreenough.net
19 Upvotes

r/ProWordPress • • 5d ago

New plugin on WordPress.org: under 10 active installs. How did you get your first users?

5 Upvotes

Solo dev here. In October my booking plugin for hair salons and barbers was approved on WordPress.org. I did everything by the book: a readme built around search terms, screenshots, an FAQ, 10 translations, "tested up to" kept current, and a few real updates.

After 7 weeks: about 250 downloads (mostly on release days, so probably bots), fewer than 10 active installs, 0 reviews. It ranks 68th for "salon booking".

I understand why the ranking favours installs and reviews, but it's a chicken-and-egg problem for anything new.

So how did you get your first 100 installs? Did the directory ever help early on, or did it all come from outside (clients, communities, content)?


r/ProWordPress • • 7d ago

Our ex employee holds the account the domain sits under, what are our actual options now???

2 Upvotes

Someone who left set up the site account under their own personal email rather than a company one. They're not being helpful about handing it over and the provider's line is that nothing happens unless that person initiates it themselves.

We've got documentation proving the organisation owns the thing. Doesn't seem to matter to them.

Which has made me look at the rest of our names and it's not much better. Spread across a couple of registrars, registrant contact on some of them is an individual rather than the company, and nobody's audited any of it since they were registered. One's at Wix Domains, a couple at Namecheap.

Beyond a cease and desist, is there a route here? And for the ones we do control, is moving everything into one company-owned account with a shared mailbox as the contact the standard fix, or is there something better.


r/ProWordPress • • 7d ago

Looking for Beta Testers — unique WP Media App

6 Upvotes

(mods: I hope you could allow this. while eventually this will be a commercial product this isn’t a sales pitch, just looking for testers)

Hey everyone.

I’m Daniel and I’ve been a WP dev for something like 15+ years and have made a career out of building custom themes for clients.

Earlier this year, a client was hit with multiple demand notices for images on their site. Sadly they couldn’t easily trace the purchase flow for these images and paid the demand

But that got me thinking — it might be useful to have an app where I could scan a clients site and mark images “license confirmed” in a way I could easily track. The App was originally just for me and called “WP Image Triage”

I quickly realized that a Mac app that let you manipulate a WP image library would be fantastically useful —especially for large libraries — taking advantage of local processing could have a ton of benefits, and ease library organization and clean up in a way that a web interface just isn’t good at.

What it is: MLHQ: Media Library HQ is your central headquarters for managing your Wordpress image library locally. With its companion plugin you can use folders, organize by image type, see where images are used on your site, swap out duplicate images easily, prevent duplicate image uploads, act as a digital asset manager to track license and source information, audit Image accessibility and so much more

Who it’s for: WordPress professionals, especially those who manage many sites or manage very large image libraries.

What’s needed: I’m looking for a handful of (Mac only) beta testers to test features and look for bugs

Reply to this thread with your interest and I’ll get you into a test group.


r/ProWordPress • • 8d ago

A client asked why their OpenAI bill was $1,500 higher than expected. The leak was in my plugin.

0 Upvotes

A client messaged me about roughly $1,500 in OpenAI charges they couldn't explain.

I'd built them a custom WordPress tool that used OpenAI for titles, descriptions, tags, captions and semantic search. It had been running fine for months. No errors, no complaints.

I checked the page source. The API key was sitting right there, and had been since April. Someone had found it and was using it.

Nothing had broken. That's exactly why nobody looked.

What I did:

  1. Told the client straight away that it was my mistake and offered to cover the cost.
  2. Revoked the key and issued a new one.
  3. Moved the OpenAI calls server-side, so the key never reaches the browser.
  4. Sent OpenAI proof the key was compromised. They refunded the charges.
  5. Added automated secret scanning to my process, so a key in front-end output gets flagged before anything ships.

If you're adding AI features to WordPress:

- Anything you pass to the front end through wp_localize_script, inline JS or a data attribute is public.

- Make the API call from PHP or your own REST endpoint, and check capabilities and nonces on it.

- Set a monthly budget limit and usage alerts in the OpenAI dashboard. A limit would have caught this in days, not months.

- Use one key per project, so a single leak doesn't hit everything.

If you've shipped anything with an AI feature this year, open the live site, view source and search for "sk-". It takes 30 seconds.


r/ProWordPress • • 8d ago

Six WP connect plugins got backdoored releases from the developer's own WordPress.org account on Nov 22; the release hold and the AI reviewer stopped them before sites got them

Post image
16 Upvotes

On November 22, between about 4:30 and 5:40 PM US Eastern, new releases of six WP connect plugins were committed to WordPress.org from the developer's own account, [Wordfence reports](https://www.wordfence.com/blog/2026/11/supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-hold/). Together the plugins have an estimated 3,600+ active installs, and the list includes Air WP Sync 2.9.1 to 2.9.4 and WP Sync for Notion 1.7.4. Each release added one file that calls itself an "Online module (Analytics & Auto-Update)". It checks in with a server at tascredit-pay.com with TLS verification switched off and runs whatever PHP comes back. Wordfence lists commands that run shell commands and dump the users table with password hashes. Others write a webshell into uploads and add an hourly cron hook.

None of it reached sites. Per Wordfence, the release delay from [Protect The Shire](https://wordpress.org/news/2026/06/pts/) held the versions back, and the automated reviewer Gandalf separately flagged the code and halted the releases. All six plugins were closed that evening. The Plugins Team says the developer reports their account was compromised. There is no patch, because there was no coding mistake to fix.

What stood out to me: Wordfence writes that before the delay, a 4:30 PM release "would have been offered to every auto-updating site on its next update check." In June Matt Mullenweg called the 24-hour wait temporary and said he expects it could be [reduced to minutes](https://wordpress.org/news/2026/06/pts/). Wordfence now says the window "has since shortened" and gives no number.

For a site owner the version list is the whole defence here. A plugin update is trust in a developer's login as much as in their code. If one of the six was ever active, Wordfence says removing it is not enough: look for `airwp-online.php`, options starting with `airwp_`, and PHP files in uploads.

If the hold shrinks to minutes, is the reviewer alone enough the next time a developer account is the way in?


r/ProWordPress • • 9d ago

How to protect a WordPress site or a WooCommerce store against bots and spam

21 Upvotes

Spam orders and bots are among the most frequent problems I deal with as a WooCommerce developer. They increase server load, pollute analytics, break integrations, and sometimes get payment gateway accounts suspended.

The problem

Before we look at how to protect a store against bots, let's clarify which types of bots usually visit it:

  1. Valid bots. These come from Google, Bing, Meta, Pinterest, OpenAI, and similar companies. They are harmless, but they add server load, especially the Meta (Facebook) crawler.
  2. Content parsers. These bots scrape public content to train AI models, repost your products on other sites, or collect analytics for third-party services. They are also relatively harmless, but they can create a heavy server load and slow down the store for real customers.
  3. Vulnerability scanners. These are more dangerous. They scan your website for known vulnerabilities and for development files that were left publicly accessible. When they find a vulnerability, they exploit it: they steal data, upload malicious scripts to the server, and do a lot of other damage. For example, a bot can replace a payment script with its own and steal customers' credit card details.
  4. Credit card testers. These bots are also dangerous. They place thousands of fake orders to find out which stolen credit cards are valid. Some of them use less obvious routes, such as adding a card as a saved payment method to test it.

Thousands of these spam orders usually lead to a payment gateway account suspension. Over the last decade, I have personally seen five merchant accounts suspended because of this, and each time we had to get the account reinstated.

The solution

Security plugins, such as Wordfence or Jetpack Security, are not effective against these attacks, for a few reasons:

  1. They process each request on your server, so you already spend server resources on every bot request.
  2. They mostly block by IP address. This no longer works, because bots usually use networks with thousands of IP addresses.
  3. They lack more advanced tools, such as showing a managed challenge (a short check that bots can't pass) to suspicious visitors. You need these tools to reduce the number of false positives.

Currently, the most efficient way to stop bots is Cloudflare or a similar service, such as AWS WAF, Bunny.net, or Fastly, that offers a web application firewall (WAF) with managed challenges.

These services work in a fundamentally different way from WordPress plugins. Instead of running on your server, they run on their own infrastructure and handle all the traffic to your server. This lets them block bots before they reach your server.

In this guide, I use Cloudflare. Even its free plan offers more than enough tools to stop bots.

Add your store to Cloudflare

First, you need a Cloudflare account with your store added to it. If you already have both, skip to the next section.

Create a new account here: https://dash.cloudflare.com/sign-up

Then, add your store domain to Cloudflare. Open Domains > Add domain > Connect a domain:

It's essential to allow personal agents, AI bots, and search bots. Also make sure that Import DNS records is set to Automatic:

You can import all the DNS records manually, but I recommend letting Cloudflare do this job.

After you add the domain, change its nameservers to the Cloudflare ones. In my experience, this is the hardest part, because merchants often don't remember where they bought their domain.

It's usually GoDaddy, Namecheap, Network Solutions, or a similar registrar. Log in to your registrar account and replace the nameservers with the ones shown in Cloudflare. They usually look like this: xxxx.ns.cloudflare.com

After you change the nameservers, it can take a few hours until Cloudflare activates the domain.

Set up Cloudflare

Open DNS > Records and make sure that the main store domain is proxied:

If the A or CNAME records for your domain are set to DNS only, switch them to Proxied with the Edit button on the right.

Proxied means that Cloudflare handles the traffic to the domain and sits between your server and its visitors. DNS only means that visitors reach your server directly.

Behind Cloudflare, your server sees Cloudflare's IP addresses instead of your visitors' addresses. Most hosts fix this automatically. If your orders or security plugin show Cloudflare IPs, ask your host to read the real IP from the CF-Connecting-IP header.

Important: bots that know your server's IP address can bypass Cloudflare and all its rules. Old DNS records, an unproxied subdomain (such as `mail.`), or outgoing emails can reveal it. Ask your host to allow web traffic only from Cloudflare's IP ranges, or enable Authenticated Origin Pulls.

Now, let's set up the security rules. Open Security > Security rules:

Your list will be empty, but not for long :)

Rule 1: Restrict Login Access

The first rule I suggest adding is "Restrict Login Access":

It applies to requests whose path starts with /wp-login.php or /xmlrpc.php. WordPress uses the first one for its login form and the second one for remote access, such as Jetpack. Bots use both to guess passwords.

You can configure these conditions manually, or click the Edit expression link and paste this expression:

(starts_with(http.request.uri.path, "/wp-login.php")) or (starts_with(http.request.uri.path, "/xmlrpc.php"))

Then, choose the Managed Challenge action. Every visitor of these pages must then pass a short check. Usually, the check runs automatically, and only suspicious visitors must click a checkbox.

Important: Jetpack connects through /xmlrpc.php and can't pass a challenge. If you use Jetpack, remove the /xmlrpc.php condition.

This rule protects only the WordPress login. The WooCommerce login and registration forms are on the My Account page. If bots attack them, add a condition for /my-account/ (or any other link you use for the account section).

Rule 2: Restrict Old Browsers

Another rule I like to add is "Restrict Old Browsers":

This rule is easiest to create with the Edit expression link. Paste the following expression:

not cf.client.bot
and not http.user_agent contains "Electron/"
and not http.user_agent contains "ChatGPT"
and not http.user_agent contains "Claude"
and (
  http.user_agent contains "Chrome/11" or
  http.user_agent contains "Chrome/12" or
  http.user_agent contains "Chrome/13" or
  http.user_agent contains "Chrome/141.0" or
  http.user_agent contains "Chrome/142.0" or
  http.user_agent contains "Chrome/143.0" or
  http.user_agent contains "Android 9." or
  http.user_agent contains "Android 8." or
  http.user_agent contains "Android 7." or
  http.user_agent contains "Android 6." or
  http.user_agent contains "Android 5." or
  http.user_agent contains "Firefox/11" or
  http.user_agent contains "Firefox/12" or
  http.user_agent contains "Firefox/13" or
  http.user_agent contains "Firefox/14"
)

The rule skips valid bots, Electron apps, and the ChatGPT and Claude agents. Then, it applies to visitors with old browsers, because many malicious bots use the user agents of old browsers.

Bot scripts are usually written once and rarely updated. As a result, they keep sending old browser versions in their user agents, which makes them easy to catch.

Real customers with old browsers can still visit the store, but they must first pass the managed challenge. Chrome and Firefox release a new version every four weeks, so update the version list every few months.

Rule 3: Restrict Suspicious Traffic

The third important rule is "Restrict Suspicious Traffic". It looks like this:

Here is the rule expression:

(not cf.client.bot
and not starts_with(http.request.uri.path, "/wp-cron.php")
and not starts_with(http.request.uri.path, "/wp-admin/admin-ajax.php")
and not starts_with(http.request.uri.path, "/wp-content/")
and not starts_with(http.request.uri.path, "/wp-includes/")
and not starts_with(http.request.uri.path, "/wp-json/")
and not starts_with(http.request.uri.path, "/checkout/order-received/")
and not starts_with(http.request.uri.path, "/.well-known/")
and not starts_with(http.request.uri.path, "/wc-api/")
and not starts_with(http.request.uri.query, "wc-api=")
and http.request.version in {"HTTP/1.0" "HTTP/1.1"})

The rule skips valid bots and the requests that must always work: WP-Cron, admin-ajax.php, the REST API, the order confirmation page, the /.well-known/ folder (SSL certificate checks and Apple Pay domain verification), and the wc-api requests (/wc-api/ or ?wc-api=) that payment gateways use to send payment updates. It also skips the wp-content and wp-includes folders, because they contain static files that Cloudflare caches anyway.

The most important part is the HTTP protocol filter. Modern browsers connect to HTTPS sites over HTTP/2 or HTTP/3, so requests over HTTP/1.x most likely come from bots. Many HTTP libraries that bots use, such as Python Requests and the Node.js HTTP client, support only HTTP/1.1 or use it by default.

Important: check the challenged requests after you add this rule. Some third-party integrations use non-standard endpoints. If the rule challenges them, add these endpoints to the exceptions.

Rule 4: Limit Automated Ordering

The fourth rule is "Limit Automated Ordering". It helps to prevent spam orders and credit card testing:

Click Edit expression and paste this expression:

(starts_with(http.request.uri.path, "/checkout")
    and not ip.src.country in {"US" "CA"})
or (starts_with(http.request.uri.path, "/cart")
    and not ip.src.country in {"US" "CA"})
or (starts_with(http.request.uri.path, "/wp-json/wc/store/")
    and not ip.src.country in {"CA" "US"})

Replace the country codes with the countries that you sell to. If your cart and checkout pages use other slugs, change the paths too.

The rule shows a managed challenge to visitors from other countries when they open the cart or the checkout, or send requests to the WooCommerce Store API. Bots use the Store API to add items to the cart and to get product data.

Important: the last condition, with /wp-json/wc/store/, can break the block-based cart and checkout, because these blocks send their requests to the Store API. If your store uses the WooCommerce Cart and Checkout blocks, remove this condition.

The country check doesn't stop card testers that use proxies in the countries that you sell to. For them, create a rate limiting rule in Security rules. Match the paths /checkout/ and /wp-json/wc/store/v1/checkout, and block an IP address or a network (ASN) that sends more than a few requests in 10 seconds.

Additional rules

If you still get spam orders or a high server load, do the following:

  1. Open the Analytics page:
  2. Look for suspicious traffic. For example, you sell only in the US, but half of your visitors come from China or another country that you don't sell to.
  3. Use the filter icon to include or exclude specific values. I usually filter by user agent, ASN (network number), or IP address.
  4. Create additional security rules that show a managed challenge to this suspicious traffic. The free plan allows five custom rules, and this guide already uses all five. On the free plan, add these conditions to an existing rule with OR instead.

Testing and validation

This is the most important part. Make sure that the rules don't break anything and that they stop real bots.

Open the Security rules tab and check the numbers in the Events section:

Check two things:

  1. The number of restricted requests and the chart.
  2. The CSR (challenge solve rate), which is the share of managed challenges that visitors solved. A high CSR means that the rules challenge too many real visitors. In this case, adjust the rules.

Then, click these numbers to see which requests the rules actually challenge:

It's extremely important to check this traffic. For example, the screenshot above shows a request from Saudi Arabia, which is very suspicious for a store that sells in the US.

Also, check all incoming integrations, such as payment gateway webhooks and monitoring services. If a rule challenges some of them, adjust that rule or add a new rule that skips those requests:

Important: this rule must run before all other rules. Set Execution order to First.

What about valid bots?

Some valid bots can create an extremely high server load by constantly crawling the filtered shop pages.

For these cases, I create a cache rule called "Force Caching for Bots". Open the Cache Rules screen and add the following rule:

This rule caches only the filtered pages, so product pages always show the current prices and stock. This is important for Google Shopping, because Merchant Center compares the prices in your product feed with your product pages.

The most important conditions here are Ignore query string (enabled), Edge TTL (set to 1 day) and the 'filter_' condition for query strings.

Here's the expression. It matches only bots, and only the filtered pages that have `filter_` in the query string. The expression builder in the screenshot can't add the lower() function, so click Edit expression and paste the expression below. The lower() function makes the user agent check case-insensitive, so it also matches bots such as ClaudeBot:

(lower(http.user_agent) contains "bot"
    and http.request.uri.query contains "filter_")
or (lower(http.user_agent) contains "meta-externalagent"
    and http.request.uri.query contains "filter_")
or (lower(http.user_agent) contains "spider"
    and http.request.uri.query contains "filter_")

For the bots that we don't care about, Cloudflare ignores the query string and serves filtered pages, such as https://example.com/product-category/straps/?filter_product_cat=classic%2Cmens&query_type_product_cat=or&orderby=menu_order&limit=24, from the cached copy of https://example.com/product-category/.

This dramatically reduces the server load, because filtered requests are usually heavy.

Summary

This guide covers the most common cases that merchants struggle with.

At the same time, it doesn't guarantee 100% protection against bots and spam. You will probably need to fine-tune some rules and make adjustments for your business.

If you're still struggling with bots and spam, feel free to reach out to me. Likes and follows are appreciated.

Thank you!

Updates:
- 11.23.2026: Added the wc-api and /.well-known/ to the exceptions list;
- 11.24.2026: Fixed typos, adjusted the caching rule, refined screenshots, and added a few important notes.


r/ProWordPress • • 9d ago

Honest dev feedback wanted: Separating WordPress core structure (parent theme) from visual "Skins" + using strict JSON schemas & phase protocols to keep AI coding agents from breaking architecture

1 Upvotes

Hi everyone,

I’m a solo designer and developer from Japan running a small studio. \*(Sorry in advance for my English—I’m using AI to help translate!)\*

I’m not here to promote anything or drop commercial links—I genuinely want to share an architecture and AI-assisted workflow I’ve been building for WordPress client work, and get honest feedback from fellow WordPress developers.

\### The Problem I Wanted to Solve
Over the years, I’ve had to rescue a lot of broken WordPress sites where multiple redesigns were stacked on top of each other—ending up with \`!important\` wars, broken skip links/keyboard focus, and layouts that break whenever the theme updates.

At the same time, when I started using AI coding agents (Cursor, Claude Code, Codex, etc.) for client sites, I noticed that without strict boundaries, AI tends to hallucinate custom CSS overrides, blur responsibilities between theme and plugins, or silently break baseline accessibility.

\### The Architecture I Built Around It
To solve both issues at once, I designed a strict separation model:

  1. \*\*Standardized Parent Theme (Core Structure & Baseline QA):\*\*
  2. \- Handles the shared WordPress foundation, security/update resilience, keyboard navigation/skip links, and structural baselines—so updating the core never breaks client-specific designs.
  3. \- \*(Note: The parent theme itself is a 100% free GPL classic theme listed on WordPress.org under \`Variable Thema\`.)\*
  4. \*\*Lightweight Child Themes ("Skins"):\*\*
  5. \- Each client site gets its own isolated Skin responsible \*only\* for visual layout and styling, governed by an explicit Parent-Skin responsibility contract.
  6. \*\*Structured Markdown & JSON Schema Protocols for AI Agents (Not Just Ad-Hoc Prompts):\*\*
  7. \- Instead of asking an AI to "build or migrate a site" freehand, I built a 20-phase execution protocol and a formal \*\*Phase-00 Diagnosis JSON Schema (\`diagnosis.schema.json\`)\*\*.
  8. \- Before writing a single line of theme code, the AI and human run a structured Phase-00 diagnosis (for either a greenfield build or legacy theme migration), classify ownership boundaries, and execute step-by-step through isolated build, migration, and QA gates (including No-JS and keyboard accessibility checks, plus a sandbox lab fixture for skin-switching and troubleshooting).

\### What I’d Love Your Honest Take On
As fellow WordPress builders:

  1. Does this strict \*\*"Parent Core + Isolated Visual Skin"\*\* split match how you manage long-term client maintenance, or do you prefer full block themes / FSE / custom starter themes from scratch?
  2. For those using AI coding agents in WordPress workflows: how are you keeping AI from making messy architectural shortcuts? Do structured JSON schemas and phase-by-phase Markdown guardrails resonate with how you work?

Would love to hear how you approach this in your own shops—any critical feedback is super welcome!


r/ProWordPress • • 10d ago

Honest dev feedback wanted: Separating WordPress core structure (parent theme) from visual "Skins" + using strict JSON schemas & phase protocols to keep AI coding agents from breaking architecture

0 Upvotes

Hi everyone,

I’m a solo designer and developer from Japan running a small studio. \*(Sorry in advance for my English—I’m using AI to help translate!)\*

I’m not here to promote anything or drop commercial links—I genuinely want to share an architecture and AI-assisted workflow I’ve been building for WordPress client work, and get honest feedback from fellow WordPress developers.

\### The Problem I Wanted to Solve
Over the years, I’ve had to rescue a lot of broken WordPress sites where multiple redesigns were stacked on top of each other—ending up with \`!important\` wars, broken skip links/keyboard focus, and layouts that break whenever the theme updates.

At the same time, when I started using AI coding agents (Cursor, Claude Code, Codex, etc.) for client sites, I noticed that without strict boundaries, AI tends to hallucinate custom CSS overrides, blur responsibilities between theme and plugins, or silently break baseline accessibility.

\### The Architecture I Built Around It
To solve both issues at once, I designed a strict separation model:

  1. \*\*Standardized Parent Theme (Core Structure & Baseline QA):\*\*
    \- Handles the shared WordPress foundation, security/update resilience, keyboard navigation/skip links, and structural baselines—so updating the core never breaks client-specific designs.
    \- \*(Note: The parent theme itself is a 100% free GPL classic theme listed on WordPress.org under \`Variable Thema\`.)\*
  2. \*\*Lightweight Child Themes ("Skins"):\*\*
    \- Each client site gets its own isolated Skin responsible \*only\* for visual layout and styling, governed by an explicit Parent-Skin responsibility contract.
  3. \*\*Structured Markdown & JSON Schema Protocols for AI Agents (Not Just Ad-Hoc Prompts):\*\*
    \- Instead of asking an AI to "build or migrate a site" freehand, I built a 20-phase execution protocol and a formal \*\*Phase-00 Diagnosis JSON Schema (\`diagnosis.schema.json\`)\*\*.
    \- Before writing a single line of theme code, the AI and human run a structured Phase-00 diagnosis (for either a greenfield build or legacy theme migration), classify ownership boundaries, and execute step-by-step through isolated build, migration, and QA gates (including No-JS and keyboard accessibility checks, plus a sandbox lab fixture for skin-switching and troubleshooting).

\### What I’d Love Your Honest Take On
As fellow WordPress builders:

  1. Does this strict \*\*"Parent Core + Isolated Visual Skin"\*\* split match how you manage long-term client maintenance, or do you prefer full block themes / FSE / custom starter themes from scratch?
  2. For those using AI coding agents in WordPress workflows: how are you keeping AI from making messy architectural shortcuts? Do structured JSON schemas and phase-by-phase Markdown guardrails resonate with how you work?

Would love to hear how you approach this in your own shops—any critical feedback is super welcome!


r/ProWordPress • • 11d ago

Pulled every WordPress CVE since January 2025 (all 23k of them) to see how bad things actually are

Thumbnail
adamgreenough.net
30 Upvotes

r/ProWordPress • • 13d ago Heartwarming

Looking for testers for plugins

5 Upvotes

I created a suite of plugins that I use on all my projects but I'd like to get some more people using them to tighten them up and get some different perspectives. Feel free to DM for a link – there's a paid version and I'm happy to offer some lifetime licenses if you're willing to use them for your projects and give feedback.


r/ProWordPress • • 13d ago

I made a WP_Query reference with a playground that runs your query in the browser

Thumbnail
gallery
9 Upvotes

I did WordPress agency work for years and `WP_Query` was the thing I kept looking up. I'm not doing WordPress day to day anymore, but I still wanted to build the reference I used to wish I had.

It has every `WP_Query` parameter grouped on one page, with types, which version added it, and notes on the stuff that tends to bite you (empty `post__in` returning everything, `offset` killing pagination, `meta_query` needing the extra array, and so on). Each example has a copy button and a "Try it" button.

The "Try it" part goes to a playground page that boots WordPress in the browser using [WordPress Playground](https://wordpress.org/playground/), adds some sample content (posts, pages with children, a `movie` CPT with a custom taxonomy, some meta), and runs whatever `$args` you write. You get the matching posts, the SQL it generated, the resolved query vars, and warnings for common mistakes like typos in parameter names or using `showposts`. Nothing goes to a server, it all runs locally in your browser.

There's also a toggle to show all the code as `array()` or `[]`, since I know people feel strongly about that one.

It was inspired by luetkemj's wp-query-ref, which I think a lot of us had bookmarked at some point. This one is written from scratch and checked against current core (7.1).

It's free and GPL, no plugin and no paid version. If you want to try it, send me a DM and I'll pass you the link.

Since I'm not in WordPress every day anymore, I'm sure there are things I've missed or got wrong, so corrections are very welcome.


r/ProWordPress • • 15d ago

The FBI says Gootloader's operator held over 1,000 hijacked WordPress sites and 216 domains, starting from an xmlrpc.php scan and stolen credentials

Post image
7 Upvotes

On November 16 the FBI published FLASH CC-111626-MW on Gootloader. As of October 2026 it counts "over 1000 infected WordPress sites and 216 domains controlled by the Gootloader administrator, which led to over $28 million in ransomware payments."

The entry is described in two sentences. The administrator "scanned WordPress sites looking for xmlrpc.php" and later "used compromised credentials to breach systems." The FLASH adds that stolen credentials gave access to plugins and themes, and that the operator injected posts and modified JavaScript. It does not say where the credentials came from, and it names no plugin or CVE.

Four days earlier the DOJ announced it had removed Gootloader from more than 100 servers, "including compromised WordPress sites." It also says the malware has infected at least 25,000 computers since 2018 and was used in ransomware attacks on at least 44 US victims, about $28.8 million "in loss." That is a different measure from the FBI's payments figure, and the two land close together. Mallory notes the FLASH doesn't say whether its 1,000 sites overlap with the servers the DOJ cleaned.

The hijacked sites carried planted keyword links and served as lure pages and redirectors for searches aimed at lawyers.

The FBI's control table includes "disable xmlrpc.php if unused" and strong MFA for administrators, and both fit that entry. If a site owner never chose to run XML-RPC, whose job is it to turn it off: the host, the agency that built the site, or the owner?


r/ProWordPress • • 17d ago

I made a Local add-on to pull and push sites to any server over SSH

35 Upvotes

Local WP's Connect only works with WP Engine and Flywheel, and my sites are on different VPSs on different providers, so every time I wanted a site locally it was wp db export, rsync, wp db import and a search-replace...

So I ended up building an add-on for it, SSH Sync for Local. It just uses your SSH access (key or password), and it does pull and push of files and the database. Before a push it shows the files that will change, and the last push can be undone.

github.com/fabiomsnunes/local-addon-ssh-sync

A pulled site runs all the live plugins, so I added a safe mode that blocks emails, turns off backup plugins and puts Stripe in test mode. It only covers some use cases for now, but it's on by default.

There's also a small CLI (ssh-sync pull/push/undo) next to Local WP's localwp.

It's free and open source (MIT), no paid version, no upsell, nothing to sell. macOS only for now and still early (v0.1.3). I've only tested it on my own servers, so I'd really like feedback from other devs!!
And if it breaks please open an issue on GitHub.


r/ProWordPress • • 17d ago

Static Astro site + headless WordPress: security review, what am I missing?

13 Upvotes

I’m running a small business website as a static Astro build, with WordPress used only as a headless CMS on a separate subdomain. Content edits trigger a rebuild through GitHub Actions, and the result is uploaded to shared hosting via rsync. I’ve tried to harden everything and would love a second opinion.

Public site (static)
HTTPS only + HSTS, nosniff, X-Frame-Options, Referrer-Policy, Permissions-Policy
Any server-side script extension denied, dotfiles (.env, .git, .htaccess) denied, no directory listings
No source maps or secrets in the build, noindex by default unless production explicitly enables indexing

Content from the CMS
All rich text goes through an allow-list sanitizer (sanitize-html): no scripts, event handlers, iframes or forms; links limited to http/https/mailto/tel
Uploaded SVGs reduced to shapes/colors; social embeds reduced to the official blockquote (the embed script is loaded by the site itself)
~40 XSS payloads tested, the key ones run as unit tests in CI

WordPress (headless)
REST API closed to the public; the build reads it with a secret token + an application password of a subscriber-level user
User enumeration blocked, XML-RPC/feeds/comments off, login limited per IP, TOTP 2FA for the admin
File editor disabled, no PHP execution in uploads, core/plugin checksums verified, minimal plugins with auto-updates, real cron job

CI/CD
Private repo, read-only workflow token, actions pinned to commit SHAs, no PR trigger
Type check, unit tests and a Playwright check of every page (overflow, headings, broken links, JS errors) before deploying
CMS-triggered rebuilds skip the checks only if that exact commit already passed them
SSH with a pinned host key; the deploy key is bound to a forced command and a single folder

Questions
Is it worth adding HTTP Basic Auth in front of wp-login.php / wp-admin on top of 2FA and login limits, or is it mostly security theater at this point?
The hosting account is shared with a few other WordPress sites under the same system user. Apart from moving to a separate account, is there anything meaningful I can do to limit the blast radius?
For a static Astro build with lots of small inline scripts, is a hash-based CSP worth the effort, or is the benefit small when there’s no user input on the public side?
Anything obvious I’m missing for this kind of setup?


r/ProWordPress • • 19d ago

how do u guys manage domians when youre juggling a load of small client sites????

10 Upvotes

I look after a pile of small one page Wordpress sites for clients. Barely any traffic on any of them, but the client list keeps growing and I charge a flat yearly fee, so the margin gets thinner every time I take someone on.

Domains are scattered across Namecheap, Wix Domains and a couple of other places depending on who set them up originally. What used to be pretty manageable is now a mess of renewal reminders, DNS records, and different registrar accounts.

Been thinking about moving everything to one registrar just to make life easier, but not sure if that's worth the hassle of transferring a load of domains. I can handle the technical side, just don't fancy spending half my time babysitting renewals and DNS records.

Anyone managing a similar number of small client sites? Do you keep domains wherever they were originally registered or move them all to one place? And if you've consolidated, which registrar has been the least annoying to deal with?