473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

protect source code

Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.
Jul 17 '05 #1
9 3770
On Tue, 5 Oct 2004 17:26:07 -0400, someone posing as toufik toufik chisled
in the wall:
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.


Lot's of ways.

1. Compile it - oh, wait this is php...

2. obsfucate it - there are many tricks to this.
--
kai - filesiteguy at yahoo dot com
www.perfectreign.com || www.filesite.org || www.gamephreakz.com
"I got a Rock!" - C. Brown

Now playing: "Cactus World News - Frontiers"
Jul 17 '05 #2
toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


One solution is

Zend Encoder:
http://www.zend.com/store/products/z...coder.php?home

--
USENET would be a better place if everybody read: | to email me: use |
http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
http://www.netmeister.org/news/learn2quote2.html | header, textonly |
http://www.expita.com/nomime.html | no attachments. |
Jul 17 '05 #3
In article <Kj********************@news20.bellglobal.com>,
"toufik toufik" <to*****@sympatico.ca> wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


Depends on what you mean by "hide it". Hide it from _what_?

You can't hide it from the web server or you won't be able to display
pages. If the customer has shell access to the server, you _may_ be
able to hide that from them if the file permissions are set correctly.

But if you're trying to "compile" the code in such a way that they can
look at the file but don't know what it's doing, that can only be done
minimally as has been previously discussed.

If you want to make the source code unavailable, switch to a compiled
language like C and write it as a CGI program. Otherwise, there's only
so much you can do to "hide" the source code in php, perl, or python.

You could switch to Java, but portability might be a problem, as well as
scaling to more traffic.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #4
filesiteguy wrote:
1. Compile it - oh, wait this is php...


Use the Zend Encoder:
http://www.zend.com/store/products/zend-encoder.php

Regards,
Matthias
Jul 17 '05 #5
Hello,

On 10/05/2004 06:26 PM, toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


You may want to try RoadSend, the first and so far the only real PHP
compiler. It generates really executable code from PHP scripts, as
opposed to just encoded byte codes which is what PHP encoders do. Not
only it will protect your code irrevesibly but it seems extraordinarily
fast.

http://www.roadsend.com/

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #6
Thanks friends.

"toufik toufik" <to*****@sympatico.ca> wrote in message
news:Kj********************@news20.bellglobal.com. ..
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.

Thanks.

Jul 17 '05 #7
toufik toufik wrote:
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


Here's a FREE solution that I have installed:

http://sourceforge.net/projects/turck-mmcache/

I have yet to actually test it yet, but it looks good to me so far.
(I'll know more when I start testing it.)

--
Justin Koivisto - sp**@koivi.com
http://www.koivi.com
Jul 17 '05 #8
Don't use an obfuscator - there are several programs available on the
web (BeautifyPHP, and a class or two at phpclasses.org) that can
recover obfuscation.
Jul 17 '05 #9

"toufik toufik" <to*****@sympatico.ca> wrote in message
news:Kj********************@news20.bellglobal.com. ..
Hi,
Is it possible to hide a source code PHP in order to protect it,
I mean, I'm developpind a web solution for customers and I don't like that
the customer or the host see my code.


You can obfuscate the source code.
This makes it typically unreadable by people.

Some claim that if you prettyprint an obfuscated
code, you can read it. Not if the comments
are gone, and the variable names are scrambled.
Then it becomes a hard problem in reverse-engineering.

See http://www.semanticdesigns.com/Produ...bfuscator.html.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Daylor | last post by:
how can i protect my code from decompile ?
29
by: Frank Millman | last post by:
Hi all I am writing a multi-user accounting/business system. Data is stored in a database (PostgreSQL on Linux, SQL Server on Windows). I have written a Python program to run on the client,...
6
by: Bill | last post by:
Hey, is it possible to protect ASP code in some way? Can it be compiled, or otherwise protect the source somehow? Thanks, -Bill.
3
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
2
by: weixiang | last post by:
Hi, After compiling with C#, the target exe file can still be reverse-compiled by ildasm. Is there someway to protect code from that method? I already used strong-name in my module. Thank...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
3
by: yservel | last post by:
Hi everybody. I was just wondering how did editors were protecting their source code from decompilers and reverse engeneering. I heard one method of source code protection was by obfuscation: ...
7
by: --== Alain ==-- | last post by:
Hi, Using the .NET reflector tool, i know that a DLL or EXE developed in ..NET platform can be decompiled and therefore code is available for all. I would like to know if exist a way how to...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.