Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a website with a database. All connections to my database go through a secure connection, however, if someone were to know the name and address of my database file, they could easily download it.

 

Ex: http://www.my-website/aspnet-client/database1.db

Anyone who knew this Internet address could download the database.

 

How can I make it so that someone would have to enter a "username/password" combination to access it? Or is there another, more conventional method of doing this?

 

Regards,

Joe

Posted

I protect my databases by not putting them in the web share. If I'm using Access I'll set up my application structure like this.

 

/ApplicationName
   /Databases
   /www

 

Then I will set up the www folder as the root of my web share. Then you can give the IUSER necessary permission to use the database, with out worring about someone downloading it.

wayne

 

The Road Goes on Forever and the Party Never Ends - Robert Earl Keen

Posted
Your best bet is to store the connection string with a full path (not relative path) to the database in the application's configuration file (web.config).
Derek,

I am posting my files to an ISP using the "Copy Project" feature of Visual Studio .NET. How do I get the full path? I don't even know what that would be.

 

Thanks for helping!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...