View Full Version : ASP.NET and ACCESS

08-13-2002, 05:52 PM
I'm writing a website using ASP.NET and the website uses an access database file. This database file contains password information, and i just found out that if someone found out the name of the access file, they can directly download it by simply entering it in the url.

for example:


and IE will automatically download the file. How do I prevent that from happening?

Thank You

08-14-2002, 02:41 AM
Well the easiest way for you to do it without having access to the web server is to open your database up in Access and password protect it. So then you have to enter a password to open it up in Access.

So if someone does figure the name of your database, and they do download it, they can't view whats in it.

Also name the database something other than like 'users' or 'database'; go for something difficult for someone to guess.

08-14-2002, 04:50 AM
sitename.database.databasename.mdb :-D no one would guess something like that.