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 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. 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! Link to comment https://forums.phpfreaks.com/topic/219864-phpini-in-public_html/#findComment-1157763 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.