How To Harden Your WordPress Security
Article By: fredric
![]() |
Listed below are many changes that can be implemented on any host and will greatly increase the security of your WordPress installations. If your WordPress is already hacked, please send an e-mail to support@BIPmedia.com and we can assist you. |
Limit Read Access with SuPHP
You must have the SuPHP module in apache installed to use this
SuPHP allows you to run your processes as your User ID, which restricts access to files that only you should normally be able to access. This means that on a shared server, you can protect other sites under different users by locking down the permissions for each user's directory.
SuPHP allows you to run your processes as your User ID, which restricts access to files that only you should normally be able to access. This means that on a shared server, you can protect other sites under different users by locking down the permissions for each user's directory.
find ./ -iname "*.php" -exec chmod 600 {} \; find ./ -type d -exec chmod 711 {} \;
.htaccess Rules
xmlrpc and wp-config are two vulnerabilities that can be safely locked down.
Add the following to your .htaccess file in your Web Root. Note that this file may be hidden because it begins with a . so you may need to work with your Administrator for help with modifying this file.
Another vulnerability is the WordPress Heartbeat. This is the script that automatically refreshes your dashboard while you are logged in. Unfortunately, this script will use up extra resources and open a vulnerability to some attack types. You can restrict access to this file by adding a rule to your .htaccess files as follows:
Finally, you can prevent attackers from being able to see author information (which could be used to find out your identity) by adding the following:
Add the following to your .htaccess file in your Web Root. Note that this file may be hidden because it begins with a . so you may need to work with your Administrator for help with modifying this file.
order allow,deny allow from 127.0.0.1 deny from all order allow,deny allow from 127.0.0.1 deny from all
Another vulnerability is the WordPress Heartbeat. This is the script that automatically refreshes your dashboard while you are logged in. Unfortunately, this script will use up extra resources and open a vulnerability to some attack types. You can restrict access to this file by adding a rule to your .htaccess files as follows:
Additionally, you can prevent people from snooping through your files by adding another rule to the .htaccess file:order allow,deny allow from 127.0.0.1 deny from all
Options -Indexes
Finally, you can prevent attackers from being able to see author information (which could be used to find out your identity) by adding the following:
RewriteCond %{QUERY_STRING} author=\d RewriteRule ^ /? [L,R=301]
Plugins for WordPress
The Wordfence plugin can be installed from the inside of WordPress and has a very small memory footprint. It will scan your installation and any files in your web root (if you set it to do that) to look for malware kits that are used to infect your files.
Additionally, it will check your core WordPress files against the public repositories to make sure that your files have not been modified.
Additionally, it will check your core WordPress files against the public repositories to make sure that your files have not been modified.
Tags: Security, Application, application security, Harden, wordpress
Welcome to the healthcare-only HIPAA - GDPR compliant cloud. Exclusively hosted on a HPC environment!
Learn more or start today by choosing your secure HIPAA - GDPR compliant server's Operating System bellow and pick the package that's best for you.
BIPmd makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine, thousand or more.
>
Looking for a custom solution?
Our technicians can provide you with the best custom-made solutionss on the market, no matter whether you're a small business or large enterprise.
Get in touch
Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |