Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
/ wp-hardener Public archive

wp-hardener is a ready to use plugin for adding an extra layer of security and performance improvements to your WordPress.

License

Notifications You must be signed in to change notification settings

jsgm/wp-hardener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

This plugin is no longer maintained. If you're still interested, please check out perpetual-wp.

License

wp-hardener

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.

Requeriments

  • WP 5.4.1 or higher. Works as well on 5.8.1 and higher.
  • SSL Certificate enabled and installed!

Disabling options

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); 

Security features

  • 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.

Performance features

  • 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.

Tested on

WP Version Working
5.8.1
5.8
5.7
5.6
5.5
5.4.1

About

wp-hardener is a ready to use plugin for adding an extra layer of security and performance improvements to your WordPress.

Topics

Resources

License

Stars

Watchers

Forks

Languages