[SIZE=4][SIZE=3]
string url = "THE LINK TO YOUR TXT FILE! (https://YOUR-WEBSITE.Webs.com/license.txt)"; // The url to your txt file
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream());
string DATA = sr.ReadToEnd();
sr.Close();//Read the txt file
if (DATA.Contains("VALID"))//Check if the txt file contains the word "VALID"
{
//If it does then the program can start
MessageBox.Show("Your License is valid", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
//If it doesn't close the program.
MessageBox.Show("Your License is NOT valid!", "NOT VALID", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
} [/SIZE][/SIZE]
this.Close();
System.Net.WebClient wC = new System.Net.WebClient();
try {
if (wC.DownloadString("RAW PASTE LINK") == "243785")
Application.Exit();
}
catch { Application.Exit(); }
Copyright © 2024, NextGenUpdate.
All Rights Reserved.