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

Securing a asp.net application

Status
Not open for further replies.

gslick

Programmer
Sep 9, 2004
18
GB
Hi,

I have created a ASP.NET application and I want to sell my code/ website. Which is the best way of doing this without allowing people to copy my program and give it away.

It it possible to put a product key in a web page ?

Thanks Gslick
 
Well, the best way to do it is to sell the .dll's (and .aspx, .ascx, etc. - if it's a full website). I'd also go through legal junk, like "you cannot re-sell this code... blah blah blah" - usually a good idea to have a lawyer draw this up if you're serious about it.

When it comes down to it, the best way to keep your code secure is to not sell it ;) If someone really wants your source code from the .dll's, etc., they just have to be decompile the binary files. Ethical? No. Legal? No. Do some people care? No.

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
there is something called a 'key' that I've seen in the book ASP.NET Website Programming - Problem - Design - Solution. It's a file with an .SNK extension that we create as developers. I believe they say it's for making all your assemblies appear to come from the same vendor...I don't know if it provides any security, but it's something to research.
Good luck
 
You could use an obfuscator to mess your code up when you compile to make it harder for someone to decompile and make sense of...Do a Google for .NET obfuscator and you'll get plenty of hits. Some are free (Microsoft give one away) others cost. But if your serious about protecting your code this is one way of approaching this.

Alternatively you code do something akin to Application Service Provision where you host the functional components on your own URL as web services and sell people applications which use these functional components. That way you get to keep your source code to yourself while selling people a shell which utilises the functionality.

Rob

Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Eisenhower 1953
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top