Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

January 12, 2010


How to restrict users from accessing files & directory level(Protect directory) using .htaccess

Today i faced a situation where i have to restrict or deny users from accessing files and folders of my web application directly by entering URL in browser which contain very important contents like images,pdfs,docs,etc. For this what i need to do is to protect the files and folders(directory) which contains images,pdfs and docs. We can restrict users from accessing files,folders and subfolders by using .htaccess(Hyper Text Files).