开发者

How Come Everybody Can See My Private Files?

开发者 https://www.devze.com 2023-01-14 23:47 出处:网络
Sorry for the newbie questi开发者_StackOverflow社区on... When I go to http://www.plans4boats.com/scripts/youtubeplayer/ in Google Chrome, I can see a full listing of the files there.What should I do

Sorry for the newbie questi开发者_StackOverflow社区on...

When I go to http://www.plans4boats.com/scripts/youtubeplayer/ in Google Chrome, I can see a full listing of the files there. What should I do if I don't want any old hacker to just come in and view/copy my source codes? Does it have something to do with htaccess?

I discovered that putting a blank index.html file in the folder helps for THAT folder, but it still leaves all subfolders vulnerable.

What should I google for more information on how to set up my server to prevent this?


Just set Options -Indexes for that particular directories either in an .htaccess file or a <Directory> or <Location> container.


What you need to do is turn of Directory Listing for your specific server. I don't know what server you're using so I can't walk you through it, but just google your server name and how to disable directory listing.


I created a file called .htaccess and put the following contents: IndexIgnore /

0

精彩评论

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