Change the name of config.php to anything you want. In this tutorial I'm going to name the config "securedconfig.php".
Now, in config.php, put this:
Code:
<?
if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {
exit('Denied.');
}
@include('yournewconfigname.php');
In "securedconfig.php" put the old content of your old config.php
That's it!