Here's my idea of using the server's PHP environment configuration in the program, generating a license string, and then writing the string to the licensed file code. Even if the program is moved to another server, the program will not be able to run. I hope you have a lot of discussion ...
Copy CodeThe code is as follows:
function authorization ($seed = ") {
$encode = $_server[' Server_software '). $_server[' server_name '. $_server[' Document_root '.
$_server[' Server_admin '. $_server[' server_addr '. Php_version. Php_os. __file__;
return MD5 ($encode);
}
$authorization _key = ' jb51.net ';
echo Authorization ($authorization _key);//This is the generation of string validation
$authorization _check = Array (' Dd670852938815f3892d3c511cc8fceb ', ' ddc976cc02bce5c3c22c4d7d201c0cae ');//Authorization string, Copy the generated character verification here.
if (!in_array (Authorization ($authorization _key), $authorization _check)) {
Die (' Sorry, your program has not been authorized by the Scripting House! ');
}
http://www.bkjia.com/PHPjc/320306.html www.bkjia.com true http://www.bkjia.com/PHPjc/320306.html techarticle Here's my idea of using the server's PHP environment configuration in the program, generating a license string, and then writing the string to the licensed file code. Even the program ...