Depends on which application it has.
If this is a desktop application, after checking the license key ... you can specify a little somewhere so that your software knows that it works in licensed mode. Make sure the bit is somewhere outside the application folder (this way, if someone directly copies your application to another machine, your software will know that it is no longer licensed).
If you are trying to make a web application, an encrypted license file somewhere in your siteβs directory seems like a popular solution. The file contains the type of license and domain name ... then your web application checks the license for each request (a bit of overhead, but you can quickly make this code a zipper).
source share