How To Stop Piracy On My PHP Script?

Fait

Seasoned Veteran
Joined
Oct 15, 2010
Messages
4,407
Reaction score
561
FP$
2,054
Hello,

I am almost ready to release my script written for Mybb to the public but for a small fee of $4 because it helps what I have done for my hard work and I can invest that back in to Spud Gaming 😉

I am worried about people pirating the script then that would cause loads of issues, You can't stop pirates but how can I implement a feature that detects if the software is a pirated copy then don't display this is a legit copy or something in the footer.

I can also make users buy licensing keys but that's getting more complex.

I want to deny support and not allow them to check for new versions if it's a pirated copy.

Thanks
 
I found this, which may help: http://www.php-protection.com/

It's a license system, but it isn't as complex. You might try to keep a list of websites that actually bought your script, and if you find one that is pirated, you can contact the hosting provider, claim the content as your own, and demand that they do something about it. This works almost all the time.

Good luck with this!
 
Thanks 🙂

Since VBulletin is doing this I might as will. What I can do is manually activate a users license and take the note that they say there going to be running the script on that way I know everyone and can add them in the system, If there not in the system (which means they have not activated legally I can then report them)

Would this be a good method?

And I check that link out!<br /><br />-- August 3rd, 2014, 11:18 pm --<br /><br />How efficient is this?


Wrote this up

Code:
<?php 





# Please Read The Included License We Are Asking Nicely Not To Remove This Line
# YOU WILL NOT GET SUPPORT FROM US AND YOU COULD BE REPORTED TO YOUR HOST IF THIS LINE IS REMOVED
#YOU SUPPORT US AND WE SUPPORT YOU ;)

#This is where you place your license number and your name that is on the licensing information that you received from us
#Please make sure you fell this information in 100% CORRECTLY to avoid confusing between you and us this verifies that you own a valid copy
$licensed_to = "";
$license_number = "HAGSDJSKSSHWH-SSJJSNSNXKSUWEU-KSJSGHSHQJW-MSMSMSHW";
$licensing_domain = "spudgaming.com";
$get_url = str_replace('www.','', $_SERVER['SERVER_NAME']);
		
		//We only need to run this once per session for the user to save server resources
	if($_SESSION['function_ran']) {
$checkfile = file_get_contents("http://www.spudgaming.com/auth_check/keys/check.php?key=$license_number&domain=$get_url");


echo $checkfile;
if($checkfile=='No') {
die ("<b> You Have Not Activated ClanBB Yet :( </b><br>
				Please contact us to obtain your license key this is to battle piracy<br>
					You can request your key <a href='http://spudgaming.com/contact.php' target='_blank'> Here! </a><br>
					If you need us to assist you further let us know! ;)<br>
						<b> Thanks for your cooperation! </b>");

} else {
//if the key appears to valid then we can start a session that says not to run this again untill the next session
session_start(); 
if(!isset($_SESSION['function_ran'])){ 
$_SESSION['function_ran'] = true; 
;
}


}
}

?>
 
Back
Top Bottom