Caution
This plugin is no longer maintained. If you're still interested, please check out perpetual-wp.
wp-hardener is a ready to use plugin which adds an extra layer of security and performance improvements to your WordPress. Most of the features listed here are a recopillation from functions that I've used in different WordPress sites.
- WP 5.4.1 or higher. Works as well on 5.8.1 and higher.
- SSL Certificate enabled and installed!
In case you need a specific feature not being disabled, modify the plugin.php file before install. At firsts lines you'll find some constants like shown here. Set to FALSE.
define("DISABLE_OEMBED", FALSE); - Forces SSL for /wp-admin.
- Disables the built-in file editor.
- Removes files versions from URLs if WP_DEBUG is set to FALSE.
- Fully disables XMLRPC.
- Removes the WLW meta tag and file (wlwmanifest.xml) for Windows Live Writer.
- Removes the license files and readme.html from root folder.
- Hides WP version.
- Removes meta tag from Visual Composer / WP Bakery.
- Adds security headers. You can checkout yours on securityheaders.com
- Disables oEmbed.
- Removes Link HTTP header.
- Removes "X-Powered-By" HTTP header if possible.
- Disables WordPress URL guessing.
- Will send a 404 response in wp-login.php if the User-Agent is not legit. This will add a little help to stop brute-force attacks altought it's easy to bypass.
- Hide version from wp-admin footer.
- Blocks empty User-Agent requests.
- Disables application passwords.
- Disables password reset.
- Disables wptexturize.
- Limit posts revisions to 3.
- Disables emojis.
Switchs local jQuery files to Google jQuery CDN.- Disables Gutenberg block library CSS file.
- Removes the capital P dangit filter.
| WP Version | Working |
|---|---|
| 5.8.1 | ✓ |
| 5.8 | ✓ |
| 5.7 | ✓ |
| 5.6 | ✓ |
| 5.5 | ✓ |
| 5.4.1 | ✓ |