|
I have some friends who use wordpress and have asked me for my opinion on keeping it secure between updates. My recommendations are standard, only allow specific IP's via .htaccess etc.
Although I came across this mental challenge, one friend pointed out a blog where the writer recommended storing your database username and password outside a publicly accessible area. For example, if your config file is /home/www/public_html/wp-config.php you should remove the variables for username and password and place them into /home/www/wp-config-unseen.php and reference them using an include statement from wp-config.php
Now I get the logic if wp-config.php could be seen naked however if the vulnerability is from a variable leak then this would offer no protection.
Is there something I am missing? What good can this do? Is there a PHP hack that would allow you to see an unprocessed file?
Thanks
-Mike
|