ckroon
Posts: 869
|
| Posted: 06/17/2008, 5:52 PM |
|
hi all.
I am installing a project on a customer server. The agreement is that they do not copy the code / give te code to anyone else. Is there any way to ensure that Components I created do no end up on another server?
I am hoping there is some script that will check for a certain server address..daily or weekly... and if it doesn't match, it either throws an error or sends me an email...
Nothing sinister...just for my own piece of mind.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
Aleister
Posts: 73
|
| Posted: 06/18/2008, 1:06 PM |
|
//
//On top of Common.php just after <?php
//
$mustrun= ((isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") ? "https://" : "http://" ). ($_SERVER["HTTP_HOST"] ? $_SERVER["HTTP_HOST"] : $_SERVER["SERVER_NAME"]) . ($_SERVER["SERVER_PORT"] != 80 ? ":" . $_SERVER["SERVER_PORT"] : "");
if ($mustrun!="http://www.server1.com" and $mustrun!="http://server1.com")
{
echo "Error";
exit;
}
Voila
|
 |
 |
ckroon
Posts: 869
|
| Posted: 06/18/2008, 3:00 PM |
|
awesome.. thanks!
_________________
Walter Kempees...you are dearly missed. |
 |
 |
wkempees
Posts: 1679
|
| Posted: 06/18/2008, 3:42 PM |
|
Add to that,
- test for the size of common.php (calculated after adding a test like that, and final generate)
or
- do a checksum calculation on common.php after that and test for that.
But first, you start with trust.
Because any well trained programmer can override your test.
You could of course search the forum for (partialy) encrypting your source code.
Walter
http://forums.codecharge.com/posts.php?post_id=97440&s_keyword=ioncube
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
JimmyCrackedCorn
Posts: 583
|
| Posted: 06/18/2008, 9:42 PM |
|
In ASP we have actually compiled key components in our applications sometimes. That way we can safely distribute them but they cannot be modified. And we have occasionally installed key components on one of our own servers; that way if they cut out that section the features go away too.
Also, I have found that the very fact that we use CCS gives us some degree of protection since editing the CCS-produced files is possible but not very efficient for long-term maintenance of a project!
_________________
Walter Kempees...you are dearly missed. |
 |
 |