Directory to store secure file

You are comparing two different things. Your ASP security is really IIS security. To get similar things in wordpress you will need to configure your web server in similar ways.