2008
DigitalWebTalk Tutorials – Make your own PHP Licensing system!
Posted by Web Freak in DigitalWebTalk TutorialsAnother useful tutorial from DigitalWebTalk.com
All Credits to to this post..
—
Ever scared that someone might steal your source code and distribute without any rights?
Well here is a solution. In this tutorial, i will teach you how to make a licensing system to your php scripts. Its fairly simple, however hackers can decode it. but still, you might be safe from the script-kiddies. Its a simple php web development tutorial.
Here is what you have to do. First Put this php code in any file of your php script :
$licensed = @file_get_contents (’http://www.yourdomain.com/check.php?u=’ . $_SERVER['HTTP_HOST'] );
if($licensed==’1′) { //your statements }
else die (”Unlicensed”);
Now the source of check.php which you have to host on your server
<?php
$domain=$_POST['u'];if( $domain == ‘licenseddomain1.com’ || $domain==’licenseddomain2.com’ ) echo “1″;
//you can add any number of domains to be licensed.
else echo “0″;
?>
Now try to hide the First bit of code in any file which has a lot of coding. Also try to encode it. you can also use Free encoders available such as THIS. But remember, these are not decryptable. I suggest you use ioncibe and encode the file which has the first codebit.
thats it. You ‘ve just made your own licensing system ![]()

Recent Comments