New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to protect folder (but make files availeble)
Hello.
Let's say I want to block access to my main folder xxx.xxx.xxx/data/ but make the files accessbile to xxx.xxx.xxx/data/file1. I tried to make a password using webmin and it worked but /data/file1 required a user/pass too, but I don't want it to be that complicated.
The main idea is I don't want people to see what do I have in xxx.xxx.xxx/data once they go to this link in their browser. But I want them to be able to download /data/file1 if I send them the links.
How to achieve that?
Thanks a lot!
Comments
I think you want to block directory listing, this might be helpful.
http://www.htaccessbasics.com/stop-directory-listing/
Probably won't help you, but to do this in nginx:
This way you can see the index if you know the password, but the files are accessible to everyone.
Edit: Oh. I thought you wanted the index, but didn't want it to be accessible to everyone.
In that case, just disable indexing.
This worked. Thank you. Options -Indexes in .htaccess
Why not just create a blank index.html file?
Either make a blank "default.html" file or disallow index viewing in htaccess.
You have a option in cpanel for it.
D'oh.