yeah its the simple way, if you have files in folder like ursite.com/folder simply upload index.html to ursite.com/folder no one can access it.