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>
更改CHMOD或权限,以便用户无法执行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.