开发者

How Come Everybody Can See My Private Files?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜