开发者

In my project sub folders are viewable. I need to make it forbidden. How shall i make it?

开发者 https://www.devze.com 2023-02-09 18:38 出处:网络
For example, if i give the below url in the address bar all images are viewable 开发者_高级运维right now.

For example, if i give the below url in the address bar all images are viewable 开发者_高级运维right now.

URL : http:///www.test.com/images/

How shall i able to avoid this.. It should not be viewable or it should be restricted or redirected to some other page.

How can this be done?

Thanks in advance...


We can do it by using

Options -Indexes

which should be entered in .htaccess file and should be placed inside the corresponding folder.

And its working fine now...

0

精彩评论

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