以下是我在 .htaccess 文件中的一部分内容:
# the following prevents display of the filetohide file
<files handler.php>
order allow,deny
deny from all
</files>
<files submit.php>
order allow,deny
deny from all
</files>
多个文件规范符不能在一个标签集内完成,如:
<files submit.php|handler.php|otherfile.txt>
order allow,deny
deny from all
</files>