We have a custom php.ini and .htaccess file in the root of the web tree.
The .htaccess cannot be accessed by default but the php.ini can be accessed.
For example:
http://example.com/php.ini
Whats the recommenced procedure to block access to the php.ini file?
Also if you must have it in the public folder try:
<Files php.ini>
order allow,deny
deny from all
</Files>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With