Securing WordPress is a big issue these days. A lot of sites/blogs get hacked on daily basis. How to secure WordPress from being hacked is what you will learn in this article. You will have to add some code snippets which will do the work for you.
This code will stop any bad request to you wpconfig.php file through .htacess. Goto your cpanel >> File Manger >> Root Folder in which look for .htaccess file, open it and add this at the end
# protect wpconfig.php <files wp-config.php> order allow,deny deny from all </files>