Comprehensive WordPress security tool
Tick the rules and the tool assembles a ready-to-use hardening configuration for WordPress: for an Apache / LiteSpeed server (the .htaccess file) or nginx, and separately for wp-config.php. It is one of the most effective ways to raise a site's security, because you block many attacks before PHP even runs. Rules that can break something are clearly marked with a risk label. Everything is computed in your browser, nothing is sent. This is a tool for administrators, so read the descriptions and test before deploying. Related: WordPress security.
Apache and LiteSpeed read the .htaccess file. nginx does not — you paste the rules into the server block.
Keys and salts
After an incident or taking over an old installation, rotate the keys in wp-config.php — this logs everyone out and invalidates stolen session cookies. You can use our salt keys generator.
wp-includes rules are not suitable for Multisite without changes.

