Last post Dec 08, 2005 12:13 PM by dstgroup
Dec 02, 2005 02:53 PM|codegalaxy|LINK
I am wanting to protect a custom module I am writing so that if the client doesnt pay me by a certain time the module just fails to work. What the easiest way to do that?
Currently I do this in the Page Load of the module View
Err.Raise(513, , "513-Possible stolen source.", , )
Is that enough anybody got a better plan or idea - maybe some kind of class where I can put something in the web config to activate deactive the module or give it a time limit.
Dec 02, 2005 04:33 PM|Ed_DeGagne|LINK
Dec 02, 2005 04:38 PM|codegalaxy|LINK
Dec 02, 2005 07:23 PM|zhenlei2004|LINK
Dec 02, 2005 07:57 PM|FuzzyGuru|LINK
Dec 03, 2005 01:13 AM|codegalaxy|LINK
Got an example of how that might work
This is an install on the client machine - I wnat him to pay me and want the site to fail after a time if I dont upload code that takes out the time limit - not really a matter of keeping it from one of the other portals
Dec 07, 2005 05:11 PM|FuzzyGuru|LINK
code available -- now? sorry.. not at the right computer (isn't that the norm?) There are a number of methods that come immediately to mind.
You should be able to implement a WebRequest to your server to get a reponse generated from a Crypto pair. The reason for using a public/private key is so that you know it was generated from his control, and your server can decide whether to send a go or
no-go code - preferrably one that includes the current date & time.
Another option is to use techniques from Server licensing (see:
http://msdn.microsoft.com/asp.net/using/building/webcontrols/default.aspx?pull=/library/en-us/dnaspp/html/aspnetcontrollicensing.asp). Then all you need to do is provide the license file for him to install on the site.
Of course, if you do plan on uploading different code, then just hard code a date into the control.
(pseudo code - place into page.load event)
If date.now < "12/25/2005" then
Dec 07, 2005 07:58 PM|hmnguyen|LINK
Dec 08, 2005 12:13 PM|dstgroup|LINK