Just move the file up one directory. If you installed WP in public_html, it will be out of the document root and inaccessible from the Web.
My file that holds the database data and password is above public_html
wp-config.php is with my WordPress files in a folder below public_html
***
By hacking wp-load.php, you can move it anywhere and even change its name.
This is my point - you need to hack - BTW the only file I change is wp-config.php
***
You can use .htaccess to return a 403 Forbidden for files that are for internal use only.
For wp-config.php I use
==>
Code:
# protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>
<==
***
And storing information encrypted solves what? The script has to decrypt it. Using? Where do you store the key?
if you get my table - from the data base - for user/password info - you would find only two columns named x0 and x1
column x0 is a random-salt-hash of length = 125 hexadecimal characters
column x1 is a random-salt-hash of length = 187 hexadecimal characters
NOTE:
both lengths are not standard hash lengths
both lengths are odd s/b even for hexadecimal
they do not use the same hashing algorithm
adds fun for the hackers
I do not [ decrypt ] I take the users input and hash it - then look for a match - of the hash - in the database
***