What's the difference between the app_data folder in a web application and a website?
Preventive action for user verification is valid before download
-
Do not provide
Directory Browsing
Provision toIIS
. -
Basically there is a way the user
Anonymous/Unauthorized
can get / download yourAuthorized File
. An example . Know the valueQuery String
and another user can enter and download it. Thus, there are two ways by which you can prevent an unauthorized user from downloading the file.(a) Save
Web.Config
in this folder and determineRoles/Users
who has access to it.(b) In
Page Load
you can check that the opened page is executed with onlyAuthorized user
.
App_Data
The folder is the same for both types Web Application
as well Web Site
.
source to share
The App_Data folder is used by ASP.NET to store the local application database, such as the database to maintain membership and role information. There is no difference between app_data folder using web app or website.
Sources:
source to share