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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Securing connection string

Status
Not open for further replies.

cawthor

Programmer
May 31, 2001
89
US
Hi,

My connection string within my code contains the database username and password. I was wondering the best way to hide this information. I am working on an Intrenet site which ises Windows Authentication in IIS, so the site is not operating via the Internet Guest Account. Therefore, any user who has access to the site could also map to the folder and view my asp files. I thought about moving the connection string to a separate file in a different folder and securing that folder, but all the users would need access to that folder if my site is running via windows authentication right?

Hope this makes sense...any suggestions would be appreciated.

THanks.
 
use COM. using VB u could create a DLL that has basic connection functionalities (both VB and ASP share the same ADO objects). then use SErver.CreateObject() to call the DLL into ur ASP and wallah!, ur connection info is protected...

Known is handfull, Unknown is worldfull
 
nope, thats just my way of saying voila ;)...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top