470,647 Members | 1,313 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

How prevent users from dl my mdb

My ASP.NET app is referencing an mdb file. How can I prevent hackers/etc...
from downloading the mdb (if they know the name/location of it?)

Right now they can just go to http://www.mysite.com/MyDb.mdb and save it to
their hard drive.

Thanks.
Nov 18 '05 #1
1 1053
There are a number of ways.

The best is to not store your mdb file on a path served by IIS...if you are
doing shared hosting this might not be possible though.

Alternatively, you can protect the folder using IIS. You can map mdb files
to ASP.Net and protect it via your web.config's authorization.

At the very least you can password protect your access file so they might be
able to download it, but they can't open it.

If your host is any good (or you are hosting yourself), the solution should
be pretty simple...either store it out of your virtual directory, or use
whatever password-protected mechanism provided to block a folder...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"VB Programmer" <Do*****************@jEmail.com> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
My ASP.NET app is referencing an mdb file. How can I prevent hackers/etc... from downloading the mdb (if they know the name/location of it?)

Right now they can just go to http://www.mysite.com/MyDb.mdb and save it to their hard drive.

Thanks.

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by alecjames1 | last post: by
2 posts views Thread by COHENMARVIN | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.