Access database prevents downloading a large inventory

xiaoxiao2021-03-06  13

Access database prevents downloading a large inventory

[Source]: [中 软 网] [Change font] [Change the biggest hind] How to prevent the MDB database from being downloaded has always been a big head of the programmer using Access. Now summarize the following effective way: 1. Modify the database name. This is a common method, name the database name into a weird name or a long name, to prevent others guess. Once people are guessed, others can still download the database file, but the chance is not large. If the database Database.mdb is changed to DSLFJDS $ ^ & ijjkgf.mdb, etc. 2. Modify the database suffix. Generally changed to Database.asp, Database.asa, Database.inc, Database.cgi, Database.dll, and more, pay attention to setting these suffixes in IIS cannot be parsed. 3. Change the database Database.mdb into # Database.mdb. This is the simplest and effective way. Analysis: Suppose others get your database address string will be http://www.yourser.com/yourfolder/#Database.mdb but actually he gets http://www.yourser.com/yourfolder/ because # here A role of intermittent characters, address ##, automatically believes that the access address string ends. Note: Do not set access to the directory. With this method, no matter what tools do not be downloaded, such as flashget, network ant, etc. Note: As long as the database file name contains '#', others cannot download normally. Similarly, the space number can also play a '#' role, but must be space in the middle of the file name. 4. Place the database connection file in another virtual directory. 5. Connect the Access database. The above only lists the common methods, in order to increase insurance, several methods can be used simultaneously. -> Use% to store the binary data into the database, and will be replished as ASP

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

New Post(0)