Access database prevents downloading a large inventory

zhaozj2021-02-16  48

Access database prevents downloading a large inventory

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, it is changed to Database.asp, Database.asa, Database.inc, Database.cgi, Database.dll, and more, note that the file that sets 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 someone gets your database address string will be: http://www.yourserver.com/yourfolder/#Database.mdb

But in fact he got: http://www.yourserver.com/yourfolder/

Because #, the address of the intermittent manner is encountered here, and the address string encounters ## and 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.

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

New Post(0)