Securing WordPress involves many many techniques, tricks. I don’t want to go too far on this topic, here let me share with you some useful code snippets that you can throw into .htaccess file without thinking. These code snippets will greatly enhance the security level of your WordPress blog/website, keeping 90% hackers outside of your site!
This tutorial applies to Apache, Lightspeed servers only.
Before we start , make sure you have this tiny, yet powerful file name .htaccess on your site root folder.
Note: if your WordPress installation is not on site root folder, don’t take .htaccess file with WordPress, this file must be kept on website root folder, it could, theoretically, be reached with this url : http://www.domain.com/.htaccess (due to security reasons, it could be reached using this way, but it’s there, right under the root folder ! )