Prevent access to files in a certain folder

前端 未结 4 1163
有刺的猬
有刺的猬 2021-01-03 23:05

I have a folder with a lot of .php files. I would like to deny access to them (using .htaccess). I know an option is to move this folder outside

4条回答
  •  走了就别回头了
    2021-01-03 23:50

    Just add a .htaccess file with the code Deny from all to the folder.

    More info at http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html

提交回复
热议问题