WordPress security tips
WordPress security

WordPress Security Tips

Most website owners hold their websites dearly to their hearts. And why shouldn’t they?. They spend hours and hours of time figuring stuff out, going through different tutorials and articles to make sure that they are able to provide a great user experience to their visitors. They work hard on putting together the content and images and setting up the plugins and the layout. If you have a website or two on WordPress, don’t forget to take these measures for the security of your website. It would be a nightmare to have to deal with security issues and lose all your content and data if your website got hacked.

WordPress security is one of the most important topics that most one neglects to follow on, until there website gets hacked. Believe me letting your website to get hacked is not fun at all. Weather you have or not any precious data on your website, everyone should follow these steps to secure your WordPress websites.

1. Use Strong Username and Password

We know this has been said many times, but usernames like ‘admin’ and ‘administrator’ are still widely used and definitely this is attacker’s first guess.

WordPress also uses ‘admin’ username by default for its installation.

Before WordPress 4.3,  users were presented with an empty box, and had to use a really terrible tool for generating secure passwords: the human brain

So WordPress 4.3 and on wards, there is a strong password generator along with password strength meter which will tell you how strong your password is. So make sure you select the strongest possible password.

Also, it is recommended to change your username from admin to something else and use strong passwords with symbols, numbers, important characters . etc.

Also prevent using these common passwords

2. Use Plugins to Prevent Some Common Attacks

Plugins plays an important role in preventing the popular attacks like Brute-force, XSS, MITM. As in Brute-force it follows dictionary attack and try every possible combination of keys to crack the password of website and the short length passwords are easily crack-able by Brute-force than the longer one.

So below is a list of plugins to prevent these type of attacks on your website.

You can use some individual plugins to prevent some common attacks like Brute-force, XSS, MITM

For most of these features in single plugin you can use

  • iThemes Security
  • Wordfence Security (Powerful plugin with a lots of security features)
    The best part about this plugin is it shows real time activity within WP Dashboard and also has a background scan feature which identifies and highlights the security threats on your website. Some of the other premium features are Country bocking, Firewall, Schedule Scan etc.

3. Keep WordPress up to Date

Something as simple as updating your WordPress version can have an impact on website security. Whenever WordPress update is available, make sure you go for it. Most people will hesitate in updating their WordPress version because they are afraid of losing the custom coding and other modifications. However, if you use the best practices while customization and modification of WordPress core, then you will not need to worry about this.

Mostly, WordPress updates come with a lot of new features and important security updates as well. The people at WordPress are constantly working hard to make WordPress more secure and hack-proof. It comes with security patches, performance improvements and other bug fixes. So it is highly recommended that you follow the news and keep up to date.

4. Keep Themes/Plugins up to Date

Just like the WordPress version your WordPress theme and plugins need to be updated regularly as well. Attackers always target an older version of  Plugins and Themes and they are more likely to infect your files if you have the older versions.

5. Never Use Pirated Themes

Don’t use free hacked premium plugins or themes. Because they don’t come from authentic sources, and most likely contain malicious code which could inject virus into your files or create new file and spread into WordPress core. Even if you have uninstalled them after testing/using it, make sure you install fresh copy of your WordPress site in a completely separate directory.

6. Disable File Edits

You should disable file editing from WordPress dashboard, because if an attacker gains access to your dashboard they could inject or erase all your contents from the files.

define( 'DISALLOW_FILE_EDIT', true );

Read more about it if you are concerned about disabling this feature.

7. Shared Hosting

If you are using shared hosting service then you probably are on the top of the list for attackers. Because some shared hosting companies don’t provide sufficient security, the worst thing about shared hosting is that the user accounts are not isolated. There could be a hundred other websites hosted on the same server as yours. If one of those websites got hacked, all websites on the same server will get infected too. Hackers also use this to their advantage by hosting one of their own websites on these servers and then spreading the infection to the entire server.

So you ask how does it affect other accounts?

Well you have separate logins and a cPanel to your hosting account but you are sharing the same operating system with other users who are also using shared hosting package, so if one of the users get affected, their malicious code will traverse up the directory and spread malware to all the users’ website files.

There is no need to be scared. Just contact your hosting provider and confirm if they have the security measures in place to counter these issues. Some hosting providers like Bluehost are pretty reliable and secure.

8. Permissions

Securing your WordPress site with recommended permissions will help you prevent public (world) users to write/executing. If you think you are facing a permissions issue you can set the default WordPress file/folder permissions here.

9. Auto Update

Automatic background updates were introduced in WordPress 3.7 and is implemented in every versions of WordPress after 3.7. Automatic updates are turned on by default in new versions of WordPress. You can also configure it by using  wp-config.php. Open wp-config.php

define( 'WP_AUTO_UPDATE_CORE', true );

WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:

  • Value of true – Development, minor, and major updates are all enabled
  • Value of false – Development, minor, and major updates are all disabled
  • Value of minor – Minor updates are enabled, development, and major updates are disabled

Note that only sites already running a development version will receive development updates. For other sites, setting WP_AUTO_UPDATE_CORE to true will mean that it will only get minor and major updates.

For development sites, the default value of WP_AUTO_UPDATE_CORE is true. For other sites sites, the default value of WP_AUTO_UPDATE_CORE is minor.

Okay, so that’s it for now. If you think we have missed anything, please share it below in the comments section.

Share This Story, Choose Your Platform!

Our products are trusted by 3000+ happy customers!

Latest Posts

3 thoughts on “WordPress Security Tips”

  1. Such a nice tips. I will contact the guys at my host – rosehosting.com to install and configure the Limit Login Attempts plugin and change the default admin user on my WP website.

    Thanks again.

  2. Excellent article on WordPress security. As WordPress is the leading content management system which eventually turn it to hackers hit list. There are numerous ways you can secure your website from being hack. Unfortunately shared hosting as well out dated theme or plugin are the core reason why its to easy to hack any website. I would personally recommend everyone to select a secure WordPress hosting and always update the core files as well plugin and theme files. Thanks for sharing these useful tips.

Leave a Comment

Your email address will not be published. Required fields are marked *