Reputation: 827
now in wordpress there is a file named wp-config.php and it contains all the passwords to database. If i allow google bot to index the whole web folder without disallowing root folder will the wp-config.php file be indexed ?
Upvotes: 0
Views: 323
Reputation: 339
No it won't I guess. allow google bot to index and check whether you can access the wp-config.php as third party user.
Upvotes: 0
Reputation: 20107
No it won't. The php will be executed when that file is viewed, and at the top, it has code which tells the server to spit out an empty page. Anyone who browses to that URL will see just a blank page. Verify this yourself...
Upvotes: 2