Jump to content

Check For Copyright


itzjmoco

Recommended Posts

I am in the prosess of making a script that will be 95% encode and sold.

 

Some of my pages will be encoded such as my functions.php and some pages that have the layout and smaller stuff that i don't mind people changing will not.

 

So on every page there is a powered by line using the following code:

<?php echo $poweredby; ?>

including the ones people can edit.

 

The contents of the powered by line are in the functions.php so they can't edit that but nothing is stopping them from just removing the above code from the non-encoded pages.

 

 

So in short i am wondering if it would be possible to create a function that can be placed in functions.php that will check to make sure $poweredby is on each page?

Link to comment
Share on other sites

You'd have to get the contents of the raw page and search for the $poweredby variable. In all honesty its not worth it and in most cases the overhead involved with encrypting/decrypting everything isn't worth it either. As a php dev its something you learn to live with and is usually addressed through a User License Agreement.

Link to comment
Share on other sites

I may not even end up doing it but i would be nice to know how.

 

I have something like this that i am already using for a different part of my site. I am not sure if it can be changed to work.

 

<?php
$response = file_get_contents("http://domain.com/test/index.php");
if( $response != 'Powered By Script Name' ) {
//Do something. For our example, kill the script.
echo "No Copyright kill script";
die();
}
//End Check

// Do normal code...
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.