Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "secure" the DB file? 1

Status
Not open for further replies.

ChampionX

Technical User
May 24, 2001
5
ES
Hi

As I learn asp, most of my doubts clear out by themselves. But there's still one of my "big" initial doubts that stays uncleared: I wonder how can I protect my access database file from being downloaded or viewed straight through its URL. Of course the file name and path should be known, but I feel like maybe there is some way to make that file only available from other scripts on the site, but not straight from the client browser.

I hope you understand what I mean. Maybe it is something that must be set by the server, in fact I tested my asp's with a free account at Brinkster and it has a special folder called db, I thought it might be an "outside-protected" folder but it was still accessible by url-db/name.mdb.

Thanks for any help on this issue.
 
Your isp whether running IIS or some linux/uix server application should be able to provide you with security to block access to the DB...the connection string is kept on the server anyway so there is no direct link for the user to view the code. One idea may be to place the DB on another machine and keep physical separation between the web app and the data...

bastien Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
contact your ISP and have them remove read permissions on your DB directory. (make sure that it retains write and execute privledges, though)

By removing read priviledges, your DB cannot be downloaded via URL.

good luck
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top