How can you prevent others from using your software? Set access permissions? Encrypt the folder? Below is a somewhat "mischievous" method~
In the folder where the main program of the software is located, create a new text file; rename this file to "ws2_32.dll". Now try running your software and see if it still works. During execution, it will definitely prompt: "The application or DLL X:\XXXXXXX\WS2_32.dll is an invalid Windows image. Please check your installation disk again."
Now let's take a look at what ws2_32.dll is~
ws2_32 - ws2_32.dll - DLL file information