CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 How to "protect" bind your code to a web site?

Print topic Send  topic

Author Message
Cindy02
Posted: 10/26/2004, 2:04 AM

Just wondering if anybody have a smart solution to share.
Problem is as follows:

Let say I develop a solution for www.codecharge.com

In my code (VB) I need a routine that checks that the
code still is placed on "www.codecharge.com,"
and
If the code has been copyed to a other webpage that it was made for it will stop working.

Any tips is greatly appreciated. Thank's

Benjamin Krajmalnik
Posted: 10/26/2004, 9:50 AM

I currently do something similar.
I use a hash (you can use MD5) of the domain name.
YOu can generate this extrnally as well as within the application.
At runtime, I extract the domain from the URL and create a hash, which I
compare to the hash in the config file.

"Cindy02" <Cindy02@forum.codecharge> wrote in message
news:8417e1328c16d2@news.codecharge.com...
> Just wondering if anybody have a smart solution to share.
> Problem is as follows:
>
> Let say I develop a solution for www.codecharge.com
>
> In my code (VB) I need a routine that checks that the
> code still is placed on "www.codecharge.com,"
> and
> If the code has been copyed to a other webpage that it was made for it
will
> stop working.
>
> Any tips is greatly appreciated. Thank's
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Cindy02
Posted: 10/26/2004, 12:56 PM

Good idea Benjamin, but I think that will not prevent them from moving the software to another site. The program I provide is paid for on a monthly fee, and includes webspace. The domain name is their own. They have full access for backing up the site. So that means that they can copy the code and move their domain to another site with the same domain name and continue using the software. I'm new in .net so it would be helpful with examples if you have any idea how to solve this problem. Thanks!
Cindy02
Posted: 10/26/2004, 4:02 PM

Benjamin, you got me going here!
Really like the idea about using MD5, If I got you right, I should make a external "MD5 sertificate file" containing the domain name and then load it in the software and compare it with domain name in config.

Found a solution that may work better for my purpose.
Thinking of using "LOCAL_ADDR" from the ServerVariables.
This way I can check IP instead with the code:

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
Dim strRequestMethod as String
strRequestMethod = Request.ServerVariables( "LOCAL_ADDR" )
if strRequestMethod <> MD5hashString then
' stolen code here
end if

Now I need to solve the issue with reading the MD5 file in the software
and putting the decoded IP adress in the MD5hashString variable, any tips on this issue? Thanks!

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.