View Full Version : Access to the config.php file???
SnappedAgain
01-18-2006, 07:41 AM
I was just wondering, couldn't someone who knows how vb works just download the config.php file and get access to the mysql username and password? There's gotta be some way to protect this from happening. I was thinking I could just make the includes directory access restricted but then I would think that vb wouldn't be able to access the file :ermm: Am I missing something here :speechless:
HMBeaty
01-18-2006, 10:07 PM
Just put an .htaccess file in there basically password protecting that directory and you should be fine
Paul M
01-18-2006, 10:41 PM
No, you cannot just download it. Because it's a php file apache processes it and supplies you the output, not the source.
rasp187
01-19-2006, 03:13 AM
There have been a few reported cases of an Apache error in which case the php file gets downloaded (this happened to me once, too) so ever since then I've had htaccess set up on my /includes/ folder.
Really the AdminCP and ModCP are the only two folders that *should* have htaccess enabled on them. I currently use htaccess for the install, includes, and admincp folders.
baronvonwalz
01-19-2006, 03:17 AM
The only time a php file would get downloaded is in the event that the PHP libraries aren't working.
SnappedAgain
01-19-2006, 03:26 AM
No, you cannot just download it. Because it's a php file apache processes it and supplies you the output, not the source.
ahh i see, so does this work the same in abyss x2 as well?
I just tried to download the file and I save it to the desktop and it says downloading and then says its completed but then the file never appears.. Im assuming this is the security measure that is taken..
Guest210212002
01-19-2006, 03:27 AM
Ideally, what should the contents of that .htaccess be?
HMBeaty
01-19-2006, 03:29 AM
Ideally, what should the contents of that .htaccess be?
Hang on a sec....I'll find it for you
But generally a username and an encrypted password for that particular directory your protecting
http://www.www-ss.com/tutorials/htaccess/htaccess.htm
Guest210212002
01-19-2006, 03:40 AM
Solid, thank you very much.
/me bookmarks that for coming over at work tomorrow.
HMBeaty
01-19-2006, 03:41 AM
You're welcome (assuming that was directed towards me)
Guest210212002
01-19-2006, 03:47 AM
You're welcome (assuming that was directed towards me)
Haha yeah, That should have read:
"Solid! Thank you very much". ;)
* Guest210212002 doesn't know where he picked up "Solid" as a replacement for "Cool" but apparently he needs to stop using it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.