deny direct access to files via url

January 8, 2014 2.1k views
How do I prevent users from being able to access files in folders, like,, ... and so on, deny all direct access to directory listing. Cheers /Adam
1 Answer
Depending on what other goals you may have, there are two ways to accomplish this: (i) How To Use the .htaccess File; or (ii) Linux Permissions Basics and How to Use Umask on a VPS.
by Etel Sverdlov
This tutorial covers five common uses for the .htaccess file. These include: Mod_Rewrite, Authentication, Custom Error Pages, Mime Types, and Server Side Includes.
Have another answer? Share your knowledge.