Secure WordPress hosting, with no server to hack
Most hacked WordPress sites are lost through the server or through files: an old PHP, an SSH or FTP password, a plugin that writes a backdoor into wp-content. HostlessWP runs WordPress inside a Cloudflare Worker, where none of those exist. The code is read-only, there is no shell, and uploads are stored as plain files that never run. What is left to protect is WordPress itself: logins, plugins and the database.
What an attacker cannot reach
No server login
PHP 8.3 runs as WebAssembly inside a Worker. There is no machine of yours with SSH, FTP, a control panel or an operating system to patch.
No shell
There is no /bin/sh to start, and exec, shell_exec, system, passthru, popen, proc_open and pcntl_exec are disabled on top. Command injection in a plugin has nothing to run.
Read-only code
Core, plugins and themes come from a bundle built at deploy time. Installing, updating and editing plugins or themes from the admin is turned off (DISALLOW_FILE_MODS).
Nothing persists in files
A file PHP writes outside the uploads folder exists only in the memory of one Worker instance and is gone when that instance ends. The next deploy starts again from your source site.
Private files stay private
PHP sources, .sql dumps, .env, logs and backup files (.bak, .old) in your WordPress folder are never published as static files.
Secrets are not in files
The database password lives in the Hyperdrive configuration, and the WordPress salts and storage keys are Worker secrets, not text in a file the site could serve.
Uploads never become code
The classic WordPress compromise is a plugin bug that lets someone upload shell.php into wp-content/uploads and then request it. On HostlessWP:
- PHP writes uploads to memory as usual. After each request, the Worker copies them to your S3-compatible bucket (R2, S3, B2, MinIO) and removes them from memory.
- Files ending in
.php,.phtml,.php5,.pharor.inc(and dotfiles,.htaccess,.sh,.env,.sql,.log) are never copied to the bucket and never served from it. - Media under
/wp-content/uploads/is served straight from the bucket, without starting PHP. Nothing in the bucket is ever run.
See how it works for the rest of the media path.
Compared with WordPress on a server
| Attack | WordPress on a server | HostlessWP on Workers |
|---|---|---|
| Guess or steal an SSH, FTP or panel password | Possible | No such login |
| Exploit an unpatched PHP or web server | Until you patch, as with PHP2Shell | No shell to gain; PHP runs in WebAssembly |
| Upload a web shell through a plugin bug | Possible if uploads can run PHP | No. PHP files are never stored or served |
| Plant a backdoor in plugin or theme files | Possible, and it survives cleanups | No. Code is a read-only bundle |
| Steal an admin password and log in | Possible | Possible. Same WordPress login |
| Plugin bug that changes the database (SQL injection, stored XSS) | Possible | Possible. Same plugins, same database |
What this does not cover
Being honest about the limits matters more than a long list of features:
- Your database is as exposed as WordPress lets it be. A stolen admin password or a plugin with an SQL injection can still change posts, users and settings. Use strong passwords, two-factor login and keep database backups.
- No firewall is set up for you. HostlessWP does not add WAF or rate-limit rules. Cloudflare's own security products can be added in your Cloudflare account if you want them.
- Your database host is still a server. HostlessWP never moves MySQL; keep it patched, require SSL and limit who can connect.
- It is an early preview (v0.1). Read the compatibility list before moving a production site.
How updates work
Because the code on the Worker is read-only, WordPress cannot update itself there: automatic updates and installs from the admin are off. Update WordPress, plugins and themes on your source site as you do today, then run npx hostlesswp deploy. The new bundle replaces the old one in a single deploy, so there is never a half-updated site.
Questions
Is WordPress on Cloudflare Workers secure?
It removes the attacks that need a server: there is no SSH, FTP or control panel, no shell, and the PHP code is a read-only bundle built at deploy time. Attacks that go through WordPress itself, such as a stolen admin password or a plugin bug that changes the database, are still possible.
Can a hacked plugin plant a backdoor?
Not one that lasts. Installing and editing plugins and themes from the admin is turned off, a file PHP writes outside the uploads folder only exists in the memory of one Worker instance, and PHP files written to uploads are never copied to the media bucket or served.
How do security updates work?
Automatic updates are off on the Worker, because the code is read-only. Update WordPress, plugins and themes on the source site, then run npx hostlesswp deploy.
Do I still need a security plugin or a firewall?
For file scanning and server hardening, no: there are no server files to scan. Login protection, two-factor authentication and firewall rules still help, because the way in that remains is WordPress itself. HostlessWP does not set up a firewall for you.
Try it on a copy of your site
A test deploy leaves your current site and host alone.