Disallow download of certain file type
If what you want to do is prevent a download of your .mdb file,
just create an App_Data directory and place the Access database in it.
Files stored in the App_Data folder are not returned in response to direct HTTP requests,
which makes the App_Data folder the recommended location for data stored with your
application, including .mdf (SQL Server Express Edition), .mdb (Microsoft Access), or XML files.
No comments:
Post a Comment