开发者

Setting chmod for folders + index.html

开发者 https://www.devze.com 2023-01-07 07:20 出处:网络
I am finishing up a small web-platform I have been doing in my spare time and am going to add a run once script that is executed at creation for each new webpage. The script will run code to restrict

I am finishing up a small web-platform I have been doing in my spare time and am going to add a run once script that is executed at creation for each new webpage. The script will run code to restrict ftp access so that people cannot download the ftp includes, some of which contain sql details.

What I was wondering was if adding blank index.html pages to subfolders is a viable secondary measure to prevent people from opening folder listin开发者_运维问答gs where they can download said files, or if it's easily bypassed?

Any help is appreciated


It sounds like you want to use the .htaccess files. Have you already tried and is this something that you cannot do that way? I am going to take a guess that you are using Apache...

0

精彩评论

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