hiding the conf.ini

A place for users and developers of the Xataface to discuss and receive support.

hiding the conf.ini

Postby Chris » Thu Jan 13, 2011 3:13 am

In other systems I've used the database login info is in a php file that has a check at the top making sure the file is being included by another file. This stops the Internet from seeing the contents of the file.

I know this is rather basic but I've not been able to figure it out.
How do I hide the conf.ini file, if it must be in the same directory as the index.php file?
Chris
 
Posts: 14
Joined: Sun Dec 12, 2010 4:31 am

Re: hiding the conf.ini

Postby ururk » Thu Jan 13, 2011 9:29 am

You can use an .htaccess file to block access to the ini files:

Code: Select all
<FilesMatch "\.(ini)$">
Order allow,deny
Deny from all
</FilesMatch>
ururk
 
Posts: 18
Joined: Mon Nov 01, 2010 12:31 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 18 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved