Thoroughly prevent Access database files from being downloaded

zhaozj2021-02-16  87

Our purpose: prevent the website of the Access database file from being downloaded. Current approach: Change the extension of the database file to .asp defect: Processing, downloaded databases and original databases are exactly the same! Solution: The idea is very simple. In this file, IIS will parse according to the ASP syntax, and then report 500 errors, naturally cannot download. However, if it is just a simple text or note field to the database, it is useless, because Access will process the content, he will exist in <% in the database! The correct way is to deposit <% in the OLE object field so that our purpose can be reached. As for how, I will not talk nonsense. If you don't have trouble, I have done a database. After you download it, you paste the table in your database into your database, the table name is casual, then don't forget to change the extension of the database. .asp, this is OK. In fact, write an ASP page to do the most convenient, but I am more lazy, ha. Who will write one more when you are free.

转载请注明原文地址:https://www.9cbs.com/read-14124.html

New Post(0)