How to avoid directory listing in laravel 4 -
i new laravel4, trying run laravel4 on shared hosting.since dont have root access, avoid public in url. have moved contents in public directory "public_html" folder.
then changed locations in respective files. when visited url "abc.com/myapp/app", lists folders , files under app directory. since exposes project files, looking avoid same.
in codeigniter if try access folders gives message
"directory access forbidden."
edit:
i have added
options followsymlinks multiviews -indexes
in .htaccess file in app folder per suggested @valey viktorovsky
there multiple methods...
the easy one:
if have access .htaccess file , can modify it, place little code
options -indexes
annoying one
if cannot create/modify .htaccess file, create index.html
file inside each folder protect
Comments
Post a Comment