Stop public access to files and folders

halalrizik2841

New Member
YetiShare User
Aug 5, 2013
40
0
0
How can we stop public access to folders and files on the script. This is a security concern as anybody can access the uploaded files and all other script folders.

Please suggest how to restrict public access to files.

Example : http://www.yoursite.com/admin/assets
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Its not a problem due to there being nothing in those folders that can cause problems.

But if you're that concerned about it then you can upload a file named index.html and that will stop any directory listing (which should be turned off anyway).
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Yes it's not a security issue. You can stop directory browsing though by also adding this at the top of your .htaccess file:

Code:
Options -Indexes