Open In App

Making your WordPress Website More Secure

Why security is Needed? 

Blogging now a days has become a hobby of so many people and WordPress is the most opted platform for the same.By default, wordpress blogs employ a minimal level of security and also its files and/or plug-ins may often be outdated. These files are traceable and vulnerable to be hacked easily. Internet is not a secure  place to work and one must be aware enough about how to be secure.

This article deals with some of the simple tips & techniques which can be implemented by the beginners in order to ensure security of their blogs and the information stored on WordPress.



Tip #1  Use a Unique, Secure Username and Password

 Tip #2  Enabling Two-Step Authentication

  1. The user needs to have a WordPress Account which can be created by clicking here. If the user already has a WordPress account skip this step.
  2. Click here to enable the two step verification. User is redirected to following page.

  1. After clicking Get Started following screen appears
  2. Choose Verify via SMS option.
  3. The WordPress shall send a verification code via SMS which the user is required to enter for verifying the number.
  4. Enter the code sent to your mobile correctly. Then a bunch of backup codes shall be provided which can be used as an alternative way to access the site if the mobile gets stolen or lost or situation in which phone can’t be accessed to get the code. Save these codes in a text file.
  5. You have now enabled two step verification.

 Tip #2  Using a Plugin

To protect from Brute Force attack, there are two great plug-ins



Tip #3  Move wp-config up one directory and lock it down

If the server being used comes with .htaccess, add this piece of code to the top of the file that shall deny access to anyone surfing for it:

<files wp-config.php>

order allow,deny

deny from all

</files>

Tip #4 Keep  WordPress Updated

Assuming that the user has Wamp server installed:

  1. Start the wamp server
  2. Open the WordPress site using localhost
  3. Under the dashboard section click on Updates
  4. In my case I have already updated my WordPress. So for me it is showing that ‘You already have the latest version’.
  5. For those who do have the latest version , there will be an option to update. Click on it. Done!!

Tip #5 Changing file permissions

Users that have shell access to the server, file permissions can be changed recursively with the following command: For Directories: find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \; For Files: find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;

Tip #6 Schedule Regular Data backups

Tip # 7. Delete the readme and any unnecessary files.

Tip #8 Enabling SSL Login

·        If the site has an SSL certificate, SSL login can be enabled. ·        To enable SSL your site must be reachable by using https.

   define(‘FORCE_SSL_LOGIN’, true);// For login only
define(‘FORCE_SSL_ADMIN’, true);//For whole admin

 Tip  #9: Ask Apache Password Protect

The plugin can be downloaded from  here. References: http://wpsecure.net/secure-wordpress/ http://www.sitepoint.com/tips-to-secure-wordpress/ http://code.tutsplus.com/articles/11-quick-tips-securing-your-wordpress-site–wp-22446 Article By Mudit Maheshwari: A 3rd year B.Tech IT student from VIT University, Vellore having keen interest in coding , learning about new technology and developing softwares . Besides being passionate about coding, he also loves playing guitar and singing. Currently staying in Chennai. You can reach him at mudit94@gmail.com. If you also wish to showcase your blog here,please see GBlog for guest blog writing on GeeksforGeeks.  

Article Tags :