Well guys, I'm new here. This is one of my many tuts i already have up on a few other forums. Here goes.
// This tut is for VB.NET.
What you need:
- Your Program,
- Webhosting (I use 000WebHost)
- FileZilla,
- Basic HTML knowledge. (Just kidding, you just need to be able to copy and paste)
OK, make an account at 000WebHost, and then download FileZilla (Or any other FTP client)
Next, open notepad, and write this in.
Code:
<head>
<body>
Name of person using program
</body>
</head>
Now save it as "PersonsName.html" So say you sold me a program, it would be.
"Vorfin.html"
Code:
<head>
<body>
Vorfin
</body>
</head>
Now, open FileZilla, and enter your FTP information (Available from your cpanel at 000WebHost") And upload the .html file into the "PublicHTML" Folder.
Right, now if you go to "yourdomain/vorfin.html" (Or whatever the file was called) It should just be a white page with their name on it.
Now, open up your project, and add this in the form_load.
Code:
WebBrowser1.Navigate("http://vorfin.netai.net/Vorfin.html")
If WebBrowser1.DocumentText = "Vorfin" = True Then
Your Normal form_load code here.
ElseIf WebBrowser1.DocumentText = "Vorfin" = False Then
MessageBox.Show("This Copy Has Been Cut Off!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning)
Me.Close()
End If Now, what that does, is go to the webpage, and if it says the specified text, opens the program. However, if you find someone has leaked a copy, then you can just remove the webpage, or change the text. That way, the program wont load for anyone using a leaked copy.
I know, not very advanced but, it's simple, yet effective, I hope it help some people =)