How can I not let people to see the folders inside a main folder, even if I chmode the main folder to 777?
If you want to deny listing to everybody, add this to tou .htaccess file: Options -Indexes -Includes Code (markup): And if you want to allow listings for authorized people, add this AuthUserFile /path_to_your_directory/.htpasswd AuthGroupFile /dev/null AuthName "Limited Access" AuthType Basic <Limit GET POST> require valid-user </Limit> Options All MultiViews Code (markup): With this method you need to create a .htpasswd file and fill them properly.
i want to let acces only to the server to acces the files, then getting from there and make a download start. Options -Indexes -Includes Code (markup): is this the good one for what I'm looking? Script isn't complete, and I can't test it.
You can test it easily: Create a directory a put the .htaccess file there Then if you try to access that directory through your browser, you'll get a 403 HTTP error similar to: "You don't have permission to access /yourTestDirectory/ on this server".