corbeeresearch Posted November 26, 2010 Share Posted November 26, 2010 Hi, It's my first time encountering a php.ini in a public_html folder. and the problem is that when you do a www.example.com/php.ini you will see the configuration. Is this safe? how do you make it safe? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/219864-phpini-in-public_html/ Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 Add this to your .htaccess. <Files ~ "\.ini$"> Order allow,deny Deny from all </Files> This will block access to *.ini files. Quote Link to comment https://forums.phpfreaks.com/topic/219864-phpini-in-public_html/#findComment-1139744 Share on other sites More sharing options...
corbeeresearch Posted January 11, 2011 Author Share Posted January 11, 2011 Thanks, it works like magic! Quote Link to comment https://forums.phpfreaks.com/topic/219864-phpini-in-public_html/#findComment-1157763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.