How to protect Wp.config.php in WordPress

WordPress is a best way to blog because Its open source, coded in PHP and has much more features as compared to other blogging platform, but we want to tell our readers that WordPress sometimes become unsecure for many of the bloggers here and they do not leave any step to be protected and secured.

Wp.config.php is one of the major file of WordPress. In that file you have all the databases details, auth key and many other things stored in it protecting this file is really neccessary if you don’t want to get hacked and for that purpose I am posting to show you method to protect your WordPress blog from being hacked.

How to Protect wp.config.php in Wordpress

For doing the below steps you must need root access to your blog.

Step #1. Login to your Cpanel

Step #2. Click on File Manager and check Show Hidden Files.

Step #3. Now search for the file .htaccess and edit this file.

Step #4. Add the below line and you will be done.

<Files wp-config.php> Order Allow,Deny Deny from all </Files>

You should take no step behind in securing your WordPress blog and always be up-to-date with latest version of WordPress because daily Hackers try to find new ways to hack in to the system and get root access of your Server and you should also need to use good hosting because low and dull hosting will get your blog hacked and leaving all your hard work behind.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge