Data Anonymisation Layer: Protecting PII Before Sending Data to External AI APIs
Build a WordPress middleware layer that detects and tokenises emails, phones, postcodes and names before prompts reach OpenAI, then restores them in…
Read tutorial
Topic
WordPress Security
Hardening WordPress against real attacks: authentication, REST API permissions, vulnerability response and securing AI integrations.
Data Anonymisation Layer: Protecting PII Before Sending Data to External AI APIs
Build a WordPress middleware layer that detects and tokenises emails, phones, postcodes and names before prompts reach OpenAI, then restores them in…
Read tutorial
Audit AI Plugin REST Routes: A WP-CLI Command That Flags Missing permission_callback
Build a WP-CLI command that walks every registered REST route, flags __return_true and missing permission_callback values, and fails CI when AI endpoints…
Read tutorial
Expose WordPress to an AI Agent Safely: Read-Only Abilities with the Abilities API and Permission Callbacks
Register read-only WordPress abilities with wp_register_ability, lock them down with permission callbacks and strict schemas, then hand them to an LLM as…
Read tutorial
Stop Leaking OpenAI Keys in WordPress: Build a REST Proxy with Capability Checks, Rate Limits and Logging
Keep your OpenAI key in wp-config, then expose a locked-down WordPress REST proxy with capability checks, nonce validation, transient rate limits and…
Read tutorial
Prompt-Injection Hygiene for WordPress AI Plugins: Sanitising User Input, Locking Tool Boundaries and Validating Model Output
Build a reusable guard class for WordPress plugins that call an LLM: sanitise user text, delimit untrusted data, whitelist tools, validate JSON…
Read tutorial
PHP2Shell Critical RCE: Protect WordPress Before and After the Patch
CVE-2026-109618 and CVE-2026-109619 hit PHP itself. Check your version, disable session upload progress as a stopgap, harden the edge, then install the…
Read tutorial