javascript - Should I hide my assets folder? -


i've written web application has assets folder. folder containts bunch of images, javascript , css files. if user writes in sub.domain.com/assets default listing appears, displays various folders, files , images. should hide content of folder? cannot find can't found on website anyway. if should hide this, how should it? tried use option -indexes , like, after saving not php scripts access js , css files, images. using apache webserver btw.

thanks in advance!

you've got 2 options really. easiest 1 create blank index.html file , place in folder(s) not want directory listing appear for.

the second being through use of .htaccess, need create or edit .htaccess file in root of folder , add options -indexes line. save ensuring not saved extension (like .txt) or , should prevent contents being listed.

if want recursively whole directory , subdirectories recommend method outlined in this post.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -