I have a folder named import at my root directory where the public folder resides. In the import folder i have lots of sub folders and each sub folder contain images and pdf files. when a user directly access the import folder through url like
www.mysite.com/import/subfolder/image.jpg
The image opens in the browser but when he trys to open any pdf file he is not allowed to open the pdf.
Now when he access the following in url he can see the whole directory structure
www.mysite.com/import/subfolder
Now he can only see all the images in the subfolder with above url
www.mysite.com/import/
with this one he can see all the folders in import The good thing is he can only see images in the folders not the pdfs.
Is it possible that I somehow disable this listing of directory as well?
Thanks in advance
You can add this line to .htaccess:
That will disable indexes.