🔥Name Your Own Price🔥 for the 11-Point WP Security Checklist Smart PDF: [ Ссылка ]
Code from the tutorial:
# BEGIN Protect the wp-config.php file
(left pointy bracket)files wp-config.php(right pointy bracket)
order allow,deny
deny from all
(left pointy bracket)/files(right pointy bracket)
# END Protect the wp-config.php file
You doesn't allow the pointy brackets (Shift period and Shift comma) so make sure they match what you see in the video.
In this tutorial I'm going to show you to protect wp-config.php file from hackers using the .htaccess file and the code above. The importance of the WordPress wp-config.php file is enough to warrant protecting it. Secure wp-config.php is a big step towards hack prevention and hacker proofing your website..
So let's put that code into your .htaccess file and secure WordPress.
First login into your hosting account cPanel. Then find and click on the File Manager icon and choose the Document Root for the website that you are hardening. This will open the root of the website in another tab.
You can also log into the website root using FTP if you are more comfortable with that.
If you do not see a .htaccess in the website right then you can make one by clicking Add New File in the File Manager or right-clicking and choosing Create New File via FTP.
Open the .htaccess file and paste the code from above into it. There is no need to make adjustments to the code. Once pasted in just save the file and you're done.
Now you've done your WordPress security for the day. Time to take a break! Or better yet, watch the next video to secure WordPress even more.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
--------------
If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
[ Ссылка ]
Connect with us:
WP Learning Lab Channel: [ Ссылка ]
Facebook: [ Ссылка ]
Twitter: [ Ссылка ]
Google Plus: [ Ссылка ]
Pinterest: [ Ссылка ]
![](https://i.ytimg.com/vi/F9QvuYHDGgw/maxresdefault.jpg)