Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-13-2002, 04:52 PM   PM User | #1
whatever
New to the CF scene

 
Join Date: Jul 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
whatever is an unknown quantity at this point
Question ASP.NET and ACCESS

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:

www.example.com/data/myDatabase.mdb

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

Thank You
whatever is offline   Reply With Quote
Old 08-14-2002, 01:41 AM   PM User | #2
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,042
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
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.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 08-14-2002, 03:50 AM   PM User | #3
Phip
Registered User

 
Join Date: Jun 2002
Location: Arizona
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Phip is an unknown quantity at this point
sitename.database.databasename.mdb :-D no one would guess something like that.
Phip is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:39 AM.


Advertisement
Log in to turn off these ads.