6 Top Tips To Hack-Proof Your WordPress Site


Your aim is to make your WordPress site a hostile environment for hackers so they bugger off and go and try and make somebody else’s life difficult! Here’s some tips and tricks showing you how to do this.

1. Upgrade your version of WordPress to the latest version

WordPress makes it easy for you to upgrade to the latest version. There are three main ways to upgrade your WordPress installation and protect your energies and livelihood.
  • You may see a message at the top of your WordPress Dashboard prompting you to upgrade to the latest version. This is an automatic upgrade for dummies step that takes less than one minute. Do it!
  • If you aren’t running a more recent version of WordPress, there are plugins available that help you automatically upgrade WordPress to the latest version with the click of a button.
  • Your server (if you are using Fantastico scripts to install WordPress in the first place) will have a link to click to upgrade to the latest version it supports.

2. Keep your plugins upgraded

Plugins get upgraded to match the latest version of WordPress.Make sure you upgrade your plugins whenever you get an alert (red circle with a number beside the “Plugins” tab in your dashboard).
  • Any security vulnerabilities that are fixed by the latest version of WordPress should be matched, if not already compatible, with a good plugin.
  • Some plugins may not support the more recent version of WordPress – continue to use them at your own risk!

3. Install the WP Security Scan plugin

Do this via your plugins panel …using the Plugin Browser/Installer functionality, or by browsing the WordPress Plugin Directory directly and installing manually.
WP Security Scan scans your WordPress installation for security vulnerabilities and suggests corrective actions for: passwords, file permissions, database security, version hiding and WordPress admin protection/security.
Once you upload and activate this plugin, you will benefit instantly. The first thing this plugin does ishides the version of WordPress you are using.
  • You may also want to consider unchecking the option to display the version of Thesis as well.
Go to your new Security tab and you will get something like this…
You’ll see that the initial scan error message alerts you to the fact that your table prefix should not be wp_.
This is because all hackers know that this is the default. For detailed instructions on how to address this, please go to Guvnr.com and follow his reliable instructions.
This step is beyond my level of expertise and I had trouble understanding how to do this at first (…and second).

4. Change your user name

The default of Admin makes it easy for hackers.
  • Change your user name to something other than the default AND
  • Change your displayed publicly user name to something other than your new ‘secret’ user name
You can choose something other than ‘Admin’ when you first set up your WordPress installation in Fantastico/cpanel.  Otherwise, go to your Dashboard/Users/Profile and make the changes.
  • You may have to create a new user and delete the old one, depending on what version you are using.

5. Use a difficult password

This is obvious BUT often overlooked.
Mix up your password with special characters, numbers, letter and upper-case letters.
You might want to use the “!” and a trick for using special characters easily is to hold down the shift key and use some numbers you can remember. Eg Mymum!(#(! is simply MYmum followed by the year 1939 holding down the shift key and followed by the exclamation mark above the 1.

6. Stop flashing your plugin details to the world

In the screenshot below, I am showing you how my plugin data was displayed to anybody by them simply typing in the url
http://yoururl.com/wp-content/plugins
While it might not be too big a deal for people to know what plugins you use – it can be damaging for hackers to know what version of a plugin you use, when it was last updated and access the individual files that make it up.
Who knows what gems of code they have ready to attack your “Akismet” plugin for example. How would you feel with a denial of service attack with thousands of inapproriate and offensive comments spamming your pages. The best way to get indexed or banned by search engines when they visit (daily in my case!).
I used the following fix beautifully.
Go into your cpanel (server files) if you have access – and create a file called “.htaccess” in /wp-content/themes/thesis/ and paste the following code into it.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# Prevents directory listing
IndexIgnore *
# END WordPress
I made sure I tested this before recommending it!