开发者

Restricting access to a web directory using .htaccess

开发者 https://www.devze.com 2023-02-26 03:42 出处:网络
I want to restrict access to cer开发者_如何学Pythontain web directories in my website using .htaccess file. I know one way using

I want to restrict access to cer开发者_如何学Pythontain web directories in my website using .htaccess file. I know one way using order allow,deny deny from all But it restricts only the first directory. It doesn't work for the remaining ones. Please help


You are wrong, using deny from all also applies to subdirectories.

i.e. unless there is another .htaccess inside the other sub directories that allows the access


Options -Indexes add this line at the top of the .htaccess file

0

精彩评论

暂无评论...
验证码 换一张
取 消