Kyrnel
Tue 1st Mar '05, 12:33pm
Since my site got hacked, I have been looking at various methods of obtaining information and violating security measures. One that stands out to me that I have not seen mentioned anywhere is how to protect the config.php file.
This file contains the login information for mysql on the server, but resides in a publicly accessible folder. I am thinking that I missed something somewhere on how to secure this file, but I have spent hours looking for it to no avail.
I tried CHMODing the folder to remove public read permissions but it also makes it inaccessible to the other files (so it breaks the board).
I know on our previous site we just put the root login in there (I know, bad idea). But even now that we created a user with limited access to mysql to use, someone could still get ahold of that file and do bad things in mysql..right?
So how do I prevent someone from just downloading this file?
Sorry if this is an obvious question, I am a programmer, not a server admin. ;P..
This file contains the login information for mysql on the server, but resides in a publicly accessible folder. I am thinking that I missed something somewhere on how to secure this file, but I have spent hours looking for it to no avail.
I tried CHMODing the folder to remove public read permissions but it also makes it inaccessible to the other files (so it breaks the board).
I know on our previous site we just put the root login in there (I know, bad idea). But even now that we created a user with limited access to mysql to use, someone could still get ahold of that file and do bad things in mysql..right?
So how do I prevent someone from just downloading this file?
Sorry if this is an obvious question, I am a programmer, not a server admin. ;P..