How do I prevent the MDB database from being downloaded? This article discusses the server-side prohibit MDB format database files are downloaded, instead of adding the anti-download table in the database, the database name to the # Number of ASP, ASA and other suffix format.
The following example shows how to disable the download of the MDB database on the server-side IIS6.0. Create a new Notepad file, do not fill in any content, change the file name to NoDownload.dll, copy to C:\Windows\System32\ (Win2000 to C:\WinNT system32\) directory, open the IIS Service Manager, Select the site you want to set, right-click, select "Properties", open the Site Properties dialog, switch to "Home Directory" tab, click the "Configure" button in the bottom
Pop up the Add/Edit Application Extension Mapping window by clicking the "Add" button below the "Mappings" tab in the Application Configuration window.
Click the "Browse" button to locate the NoDownload.dll file that you just clicked, enter ". mdb" in the "extension" text box, action set to: All actions, click "OK" to save the settings.
This will prompt the HTTP 404 error when you enter the database address directly, prompting "file or directory not found" and downloading using FlashGet and other download tools.
Original address: http://www.webshell.cc/3766.html
Prevent MDB databases from being downloaded with IIS