Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

Is necessary to use from webservice for security of DB?
I put my connection string (which has username and password of db) in web.config.
Is it Security weakness?
Must I put connection string in Webservice?
If I put my connection string to webservice, the database security is be provided?

Thanks very much

What I have tried:

i don't do any thing for this problem.


help.
Posted
Updated 8-Nov-18 0:06am

1 solution

It's generally considered ok to put the username and password in the web.config as IIS knows not to serve that file if it is requested. If a hacker manages to hack your server and get access to the file system they'll get the details though. It is possible to encrypt parts of the web.config so if you wanted to be really secure you could do that (google how if you don't know) so even if someone gets access to the file they can't get the details.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900