# Security defaults

> What WP Waterfall turns on at the web server and in PHP to keep every WordPress site safe, why, and how to ask for a relaxation such as XML-RPC for Jetpack.

Source: https://docs.wpwaterfall.com/security-defaults

Every WP Waterfall site starts with the same security settings. You do not need a security plugin for any of them, and they are chosen so that WooCommerce, page builders such as Elementor and Divi, Jetpack, the block editor, and WP-CLI keep working. This page lists each setting, why it is there, and how to change it when a plugin needs something different.

## WordPress settings

- **No file editor.** The theme and plugin file editors in wp-admin are off on every environment. Edit code on staging, over SFTP, or in Git.
- **No code changes on live in Git mode.** Live runs a read-only release, so wp-admin offers no plugin, theme, or core installs or updates there. Make the change on staging and promote it. See [Environments](https://docs.wpwaterfall.com/environments).
- **Application passwords over HTTPS only.** Integrations that sign in with an application password keep working, because every WP Waterfall site is served over HTTPS. WordPress refuses them over plain HTTP.
- **A secrets key for every site.** WordPress 7.2 and later keep the secrets that plugins store (API keys, tokens) encrypted, and need a key named `WP_SECRETS_KEY` in `wp-config.php` to do it. WP Waterfall sets it for every site, so plugins that use it work with nothing to turn on. A site has one key, the same on live, staging, and every preview, so a copy of the database between environments keeps its secrets readable. The key never changes, and nobody needs to see it. A site you migrate to WP Waterfall keeps the key its old host gave it.

## Security plugins and the files WP Waterfall owns

WP Waterfall applies the hardening that security plugins usually add, at the server level: the web server rules in this article (hidden files, no PHP in uploads, XML-RPC and sign in limits, flood limits, security headers, no folder listings), and the WordPress constants `DISALLOW_FILE_EDIT` and, on live in Git mode, `DISALLOW_FILE_MODS`. You do not need a plugin to write them.

`wp-config.php` and the web server config belong to WP Waterfall, and your site's code can not write to them. A security plugin that tries to write its rules there, for example Solid Security, Kadence Security, or iThemes Security, is told by WP Waterfall that file writing is not allowed, so it skips the step and adds nothing to your error log. Its own settings still work. The rules it would add are already in place, or are not needed on WP Waterfall.

Firewall plugins such as Wordfence and All In One WP Security write server files only when you press a button for it. Leave that option off. A site can read the constant `WPWATERFALL_PLATFORM_HARDENING` to know that the platform applies server hardening.

## XML-RPC

XML-RPC (`xmlrpc.php`) is an old API that attackers use to guess passwords and to send pingback floods. Most sites no longer need it, so WP Waterfall blocks it on every site: the web server answers `403 Forbidden` at `/xmlrpc.php` before the request reaches WordPress.

If your site needs XML-RPC, for example for **Jetpack**, the WordPress mobile apps, or a publishing tool, open **Tools** on the live environment and turn off **Block XML-RPC**. Staging and preview environments always block it. The sign in limit below still applies to XML-RPC when the block is off.

Once the block is off, WordPress decides what XML-RPC does. With **Jetpack** active, it works. Without Jetpack, WordPress answers every XML-RPC call with an error. To choose for yourself, add the environment variable `WPWATERFALL_XMLRPC` on the **Info** page (see [Environment variables](https://docs.wpwaterfall.com/environment-variables)):

| Value | What it does |
| --- | --- |
| `on` | XML-RPC works, for example for the WordPress mobile app or a publishing tool. Pingbacks stay off. |
| `off` | XML-RPC is off, even with Jetpack active. |

Remove the variable to go back to the default.

### Pingbacks are off on every site

A pingback is a note one WordPress site sends to another when it links to a post. To accept one, your site must fetch a page from an address that the sender names, and the sender does not sign in. That makes pingbacks a way for a stranger to make your server open any address on the internet: it is how pingback floods are sent through other people's sites, and it is the way in for a flaw in the software that reads a web answer. The Brotli flaw of November 2026 (CVE-2026-111497) could be reached this way.

So WP Waterfall keeps pingbacks off on every site, and no setting turns them on:

- WordPress does not serve the two pingback calls (`pingback.ping` and `pingback.extensions.getPingbacks`), with **Block XML-RPC** on or off, with or without Jetpack.
- No page sends the `X-Pingback` header, so other sites are not told to send pingbacks.

Everything else in XML-RPC works once you turn the block off. Comments and trackbacks are not changed. Staging and preview environments also send no pingbacks of their own (see [Staging privacy](https://docs.wpwaterfall.com/staging-privacy)).

## Sign in limits

WP Waterfall limits how fast one address can send sign in attempts:

- `wp-login.php`: 10 attempts a minute, with room for a burst of 20.
- `xmlrpc.php`: 60 calls a minute, with room for a burst of 60.

Only form posts count. Opening the sign in page, signing out, and wp-admin pages are never limited. An address over the limit gets `429 Too Many Requests` until it slows down. If a team signs in from one office address and hits the limit, message Nami from the chat button. Cloudflare adds its own, tighter limit on `wp-login.php` in front of the server: see [Bot protection](https://docs.wpwaterfall.com/bot-protection#always-on).

## Flood limits

One address cannot fill your site's PHP queue. WP Waterfall limits the pages that run PHP, per visitor address, with limits that no visitor comes near:

- All pages: 100 requests a second, with room for a burst of 300. A cached page counts.
- Pages with a query string, such as a search: 20 requests a second, with room for a burst of 100.

An address over a limit gets `429 Too Many Requests` and a `Retry-After` header of 5 seconds. Static files, uploads, wp-admin, and the sign in page are not counted here. A large group behind one office address can pass these limits only with thousands of people on the site at once. If your visitors do hit them, message Nami from the chat button.

## User names stay private

Attackers often list a site's user names before they guess passwords. For visitors who are not signed in, WP Waterfall:

- answers `/?author=1` and similar with "not found" instead of redirecting to the author's page. Author links such as `/author/jane/` still work. Sites with plain permalinks keep `?author=`, because that is their author link.
- removes the `/wp-json/wp/v2/users` routes from the REST API. Signed in users and integrations that use an application password still get them, so the block editor works.
- leaves the users sitemap out of `/wp-sitemap.xml`.
- leaves the author's name out of oEmbed answers.

## Files the web server never serves

The web server answers `404 Not Found` for files that should never be public, wherever they sit in the site. A 404 does not tell a scanner that the file is special, and these requests add no lines to `error.log`. A request for a folder with no index file, such as `/wp-admin/css/` or `/wp-content/uploads/`, also answers 404 and writes nothing to `error.log`. The server never lists a folder's files. These files answer 404:

- dotfiles and folders such as `.git`, `.svn`, `.env`, and `.htaccess` (`/.well-known/` still works)
- copies of `wp-config.php`, such as `wp-config.php.bak` or `wp-config-old.php`
- logs, database dumps, and editor leftovers: `*.log` (including `wp-content/debug.log`), `*.sql`, `*.sql.gz`, `*.bak`, `*.old`, `*.orig`, `*.swp`, and names ending in `~`
- build and tool files: `composer.json`, `composer.lock`, `auth.json`, `package-lock.json`, `yarn.lock`, `wpwaterfall.yml`, `wp-cli.yml`, and `error_log`
- archives in the top folder of the site, such as `backup.zip`, `site.tar.gz`, or `site.wpress`
- backup plugin folders: `wp-content/ai1wm-backups`, `wp-content/updraft`, `wp-content/backups-dup-lite`, `wp-content/backups-dup-pro`, `wp-content/wpvividbackups`, and `wp-content/uploads/backwpup-*`
- WooCommerce logs and downloadable product files in `wp-content/uploads/wc-logs` and `wp-content/uploads/woocommerce_uploads`
- `readme.html` and `license.txt`, which show the WordPress version
- the update folders `wp-content/upgrade` and `wp-content/upgrade-temp-backup`, and the web installer `wp-admin/setup-config.php`. While WordPress updates itself it unpacks the new files into the update folder for a moment, and attackers watch for them there. WordPress writes to the folder with its own file calls, so updates still work. Your site was installed with WP-CLI, so the web installer is never needed.

`wp-config.php` itself sits one folder above the site, out of the web server's reach.

Download backups from your backup plugin's own screen, or over SFTP. For WooCommerce downloadable products, keep the download method on **Force downloads**. To share a file such as a zip, put it in the Media Library instead of the top folder.

## Uploads never run PHP

A PHP file in `wp-content/uploads` is never run, on any environment. This stops the most common way a hacked plugin turns an upload into a back door.

## Security headers

Every page carries three headers:

| Header | Value | Why |
| --- | --- | --- |
| `X-Frame-Options` | `SAMEORIGIN` | Other sites can not frame your pages to trick visitors into clicks. |
| `X-Content-Type-Options` | `nosniff` | Browsers do not guess file types, so an upload can not run as a script. |
| `Referrer-Policy` | `strict-origin-when-cross-origin` | Other sites see only your domain, not the full address a visitor came from. |

WordPress post embeds, the Customizer, and page builder previews can still be framed. WP Waterfall adds no Content Security Policy, so embeds, payment forms, and page builders work as they do anywhere else.

## PHP settings

For web requests, PHP runs with these settings:

- **No shell commands.** `exec`, `passthru`, `shell_exec`, `system`, `proc_open`, `popen`, `pcntl_exec`, and `pcntl_fork` are off. WordPress does not use them, and backup and image plugins that try them fall back to PHP code. WP-CLI and cron jobs run PHP on the command line, which keeps them.
- **PHP stays inside the site.** PHP can open files in your site folder, the temporary folder, the session folder, and the few WP Waterfall files it needs, such as the page cache and the object cache. It can not read the rest of the server.
- **No remote includes.** PHP never includes code from a URL.
- **No version banner.** PHP does not announce its version.
- **Safe session cookies.** PHP session cookies are `HttpOnly` and `Secure`.

## What else protects the site?

These settings come from the web server and PHP. Three more protections work on top of them, and each has its own article:

- [Bot protection](https://docs.wpwaterfall.com/bot-protection) decides what happens to automated traffic at Cloudflare, before it reaches WordPress.
- [Malware scanning](https://docs.wpwaterfall.com/malware-scanning) and the [integrity check](https://docs.wpwaterfall.com/site-integrity-check) look at your files. Their results are on the **Scans** card of the **Protection** tab.
- [Vulnerability protection](https://docs.wpwaterfall.com/vulnerability-protection) blocks attacks on known plugin, theme, and core vulnerabilities on every live site with its own domain, through Patchstack, with nothing to turn on.

## Ask for a relaxation

Most needs have a switch you can use yourself:

- **XML-RPC** for Jetpack, the mobile app, or a publishing tool: turn off **Block XML-RPC** in Tools, as described above.
- **PHP limits** such as memory and upload size: see [PHP settings](https://docs.wpwaterfall.com/tools-php-settings).

For anything else, such as a plugin that needs `exec` to run a program on the server, or a page that another site must frame, message Nami from the chat button with the site name, the plugin, and what it needs. We turn the setting on for that site only.
