.htaccess deny access to specific files? more than one

前端 未结 3 1870
予麋鹿
予麋鹿 2020-12-05 08:19

I am able to disable access to a file with .htaccess, but I don\'t know how to disallow multiple files to be viewed (directly, not from includes)

They are .php so I

3条回答
  •  攒了一身酷
    2020-12-05 08:33

    Looks like you have to exclude those files one by one:

    
    Deny/Allow/Whatever
    
    
    ...
    

    You can use *.gif in or something*, but as home.php, file.php and test.php can't really be grouped with a "*", this is probably the only way to go.

提交回复
热议问题