Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I want to create an application using c# and asp.net and deploy this application on a server which I will then put down at a clients premises how can i prevent anyone from making changes to my code ex encryption as this will have a major impact on my application if someone can change my code example webconfig file an the.cs files.

Thank you Divan
Posted
Comments
Zoltán Zörgő 20-Aug-12 3:46am    
You want to prevent administrators that have access to the server hosting your application to access the application itself?
mrDivan 20-Aug-12 4:34am    
thank you
Zoltán Zörgő 20-Aug-12 10:14am    
You did not answer to my question. Is this the case?

Before deploying the application into the server you have to do some certain basics security for that this guide will help you.

Also have a look on http://msdn.microsoft.com/en-us/library/dd328094.aspx[^]
 
Share this answer
 
Comments
mrDivan 20-Aug-12 4:33am    
thank you
Hi,

Some of the basic steps you can do like,

1) Your database server should be with secured credentials.
2) your Configuration file should be encrypted.
3) You can create web service to place your license logic on other server.
4) You can obfuscate all library.

Hope this is sufficient for primary securing your code.

Thanks
-Amit Gajjar.
 
Share this answer
 
Comments
mrDivan 20-Aug-12 4:33am    
Hi Amit thanks for your response

How do i encrypt my web config file and will this not make it slower because at has to decrypt everytime.

Am I correct in saying that they will not have access to the .csfiles
AmitGajjar 20-Aug-12 4:44am    
if you do dll obfuscation then getting code back is very difficult. and for config file encryption it is asp.net function so don't worry about performance. you ca check MSDN for encrypting connectionstring. just google for it, you will get your code from first page links.

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