Secure Your WordPress Website – Important Tips

wordpress security

WordPress security isn’t about risk elimination its about risk reduction. You can totally keep your WordPress website secure with effective maintenance and administration.

If your website is a crucial part of your business, then you need to start paying extra attention to your WordPress website security. This post will cover the best WordPress website security practices that will improve your WordPress security and keep your site safe from hackers and malware.

Here Are 30 Steps To Ensure Your WordPress Website Is Clean, Secure And Hack-Free!

  1. Secure your working environment by making sure your local computer, browser, and routers are up-to-date, free of spyware, malware, and virus infections.
  2. Consider using tools like no-script in your browser and VPN’s to encrypt your online communication when moving between locations and using different public WiFi hotspots.
  3. The web server running WordPress can have vulnerabilities. If you are managing your own server, make sure that you install security updates for your operating system, web server, PHP, and applications. Or get someone qualified to do it.
  4. When connecting to your server you should always use an SFTP connection.
  5. If you run multiple blogs on the same server, it is wise to consider keeping them in separate databases each managed by a different user.
  6. Do not use admin as your username. Create a new user in WordPress at Users > New User and make that a user with Administrator rights. After that, delete the admin user.
  7. Using an email ID instead of a usernameto log in is a more secure approach. Usernames are easy to predict, while email IDs are not.
  8. You can also customize the login page URLand the page’s interaction. When hackers know the direct URL of your login page, they can try to brute force their way in.
  9. Use a less common password. You can use tools like iPassword and Lastpass to generate passwords. They are more effective.
  10. Always use the CLU Rule while creating passwords. CLU: Complex. Long. Unique. Change your website passwords regularly. Improve their strength by adding uppercase and lowercase letters, numbers, and special characters.
  11. Add a two-factor authentication (2FA)to reduce the risk of Brute Force attacks.
  12. Use tools like Google Authenticatorand Rublon Plugin to add a two-factor authentication.
  13. Limit login attempts. Brute force attacks generally target login forms. Limiting login attempts will clear off this vulnerability. You can use security plugins like the iThemes Security Pluginto specify a certain number of failed login attempts after which the plugin bans the attacker’s IP address.
  14. A lockdown feature for failed login attemptscan also solve a huge problem. Whenever there is a hacking attempt with repetitive wrong passwords, the account gets locked, and you get notified of this unauthorized activity.
  15. You could also limit the number of attempts to login from a certain IP address. Plugins like the All in One WP Security & Firewallhave options to simply change the default URL (/wp-admin/) for a login form.
  16. Deal rightly with multiple people accessing your admin panel. Don’t give applications or users access beyond what they need. Only give permissions to users or applications when they need it. Assign people to appropriate roles, and you’ll greatly reduce your security risk.
  17. Automatically log out Idle Usersin WordPress. Logged in users can sometimes wander away from the screen, and this poses a security risk.
  18. You can do this with the help of Idle User Logout Plugin. Simply set the time duration and uncheck the box next to ‘Disable in wp-admin’ option for better security.
  19. Another tricky method to increase security is by adding a security question to your WordPress login screen. You can add security questions by installing the WP Security Questions plugin  as well.
  20. Ensure to delete any unused or unknown user accounts.
  21. The wp-admin directory is the heart of any WordPress website. Password-protect the wp-admin directory to keep it safe and secure. This way the website owner may access the dashboard by submitting two passwords. One protects the login page, and the other the WordPress admin area.
  22. AskApache Password Protect pluginautomatically generates a .htpasswd file, encrypts the password and configures the correct security-enhanced file permissions.
  23. Implementing an SSL (Secure Socket Layer) certificateis one smart move to secure the admin panel. SSL ensures secure data transfer between user browsers and the server, making it difficult for hackers to breach the connection or spoof your info.
  24. The SSL certificatealso affects your website’s rankings at Google. Google ranks sites with SSL higher than those without it.
  25. Turn offPHP error reporting.
  26. Hide wp-config.php and .htaccess.For better WordPress security, you’d need to add this to your .htaccess file to protect wp-config.php:

<Files wp-config.php>
order allow, deny
deny from all

  1. The wp-config.php file holds crucial information about your WordPress installation and is the most important file in your site’s root directory. Take your wp-config.php file and move it to a higher level than your root directory to make it inaccessible to hackers.
  2. And don’t worry, even if it is stored one fold above the root directory, WordPress can still see it.
  3. Use WordPress security keys, set of random variables, for authentication to improve security (encryption) of information in cookies. The Sucuri Plugin can help you with WordPress security keys.
  4. Disable File Editingvia editor in WordPress. This is the easiest way a hacker could change your files. The editor is accessible to anyone who logs into your account. It just takes a line of code to avoid this problem. Open your wp-config.php file and paste the following code:
    define( ‘DISALLOW_FILE_EDIT’, true );


About SAM

I am expert wordpress developer and internet marketer.

View all posts by SAM →