CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Simple project protection

Print topic Send  topic

Author Message
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.
View profile  Send private message
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 :-)
View profile  Send private message
ckroon

Posts: 869
Posted: 06/18/2008, 3:00 PM

awesome.. thanks!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.