473,405 Members | 2,349 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,405 software developers and data experts.

newbie: does PHP code obfuscation make sense?

Hello,
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
Thanks in advance for your answers.
/RAM/
Jun 27 '08 #1
5 2009
On Jun 7, 11:32 pm, r_ahims...@poczta.onet.pl wrote:
Hello,
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
Thanks in advance for your answers.
/RAM/
When I need to protect my intelectual property on PHP source code, I
use Zend Guard.
But if you are not selling your product, I don't see the point. If you
don't trust your hosting company, just choose better one.
If someone would gain unauthorized access to your application, he
could just copy it.
Jun 27 '08 #2
In our last episode, <g2**********@news2.task.gda.pl>, the lovely and
talented r_********@poczta.onet.pl broadcast on comp.lang.php:
Hello,
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
Thanks in advance for your answers.
I get the analogous question all the time from would-be writers. It's
vanity.

Have you got thousands of lines of wiki-blog-shopping cart? I'm bettng you
don't. I'm betting you have a gadget. An experience programmer will look
at your page --- which I am assuming you mean to make public --- see what
you page does, and if by chance he wants to do the same thing, he'll code it
himself. Even if you have the sleaziest hosting company in the world, they
won't even look at your pages unless they get a complaint, and if they do
get a complaint, they won't be looking for code snippets (unless of course
you are using them to hotlink or do something to hang up the server --- even
then they won't analyze it --- they'll just tell you stop and they'll change
the permissions so it won't execute until you replace it).

--
Lars Eighner <http://larseighner.com/us****@larseighner.com
Countdown: 226 days to go.
Jun 27 '08 #3
r_********@poczta.onet.pl wrote:
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
First of all, it's good to have certain degree of paranoia. You'd make a
good sysadmin.

Second, "stoling code" is not a technological problem, but a social one.
Don't try to apply technological measures to non-technological problems.
Obfuscation won't help you here. DRM won't help the music industry against
piracy.

Third, lawyers. If you have a real fear of the "code theft" happening, get
yourself one. They tend to be a good non-technological solution to
non-technological problems.

Fourth, get a good pipe and build your own servers. No risk in this
scenario.

Fifth, develop trust with your host. Get in touch with local hosting
companies.

And last but not least, remember what all the expers in crypto always say:
you cannot be smarter than yourself to tell out if your ideas are good or
bad. Eventually you'll have to tell the world out. Read some on Bruce
Schneier, really.
Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
Jun 27 '08 #4
Lars Eighner wrote:
In our last episode, <g2**********@news2.task.gda.pl>, the lovely and
talented r_********@poczta.onet.pl broadcast on comp.lang.php:
>Hello,
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
Thanks in advance for your answers.

I get the analogous question all the time from would-be writers. It's
vanity.

Have you got thousands of lines of wiki-blog-shopping cart? I'm bettng you
don't. I'm betting you have a gadget. An experience programmer will look
at your page --- which I am assuming you mean to make public --- see what
you page does, and if by chance he wants to do the same thing, he'll code it
himself. Even if you have the sleaziest hosting company in the world, they
won't even look at your pages unless they get a complaint, and if they do
get a complaint, they won't be looking for code snippets (unless of course
you are using them to hotlink or do something to hang up the server --- even
then they won't analyze it --- they'll just tell you stop and they'll change
the permissions so it won't execute until you replace it).
Except PHP script files are not executed. They are only read. So you
should NOT have the execute bit set...

Unless, that is, they have a shebang at the start - which a web page
would not have.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #5
On Jun 7, 9:32 pm, r_ahims...@poczta.onet.pl wrote:
Hello,
I am learning PHP5. I would like to ask experienced programmers if you use
PHP5 code obfuscation? I am writing website in Linux and I consider using
some code obfuscator because I don't trust hosting firms, I wouldn't like
to have my code stolen because it contains some good idea.
Thanks in advance for your answers.
/RAM/
If it's the idea you're trying to protect then obfuscation will do
nothing for you as the idea will become clear to anybody who uses your
script. For example, you don't need to know how Amazon implemented
its one click system to be able to implement your own, because what
happens when you click the "Buy with oneClick" button is immediately
obvious. A competent programmer could produce his own oneClick system
without ever seeing how Amazon's implementation works.

If it's the idea you seek to protect then your only recourse is the
legal system and patents. And as I think software patents are
inherently evil I couldn't recommend that you do that.
Jun 27 '08 #6

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

Similar topics

3
by: Aaron | last post by:
How would code obfuscation affect performance? in .net C#
15
by: Enzo | last post by:
Hi Ng, It's possible to protect the source code of a js file? With PHP? Thanks in advance! Enzo
159
by: petantik | last post by:
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection...
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: ...
16
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
27
by: Jonathan Wood | last post by:
Greetings, I'd like to write any number of classes and then use those classes from any number of .NET applications. Since we've supposedly left "DLL Hell" and ActiveX objects behind, what has...
3
by: aplata | last post by:
I am trying to understand the following code: my @arr1=(5,3,2,1,4); my $i=0; my $j=0; $tmpnum for($i=0;$i<@arr1;$i++) { for($j=0;$j<@arr1;$j++) { if($arr1<$arr1) { ...
6
Markus
by: Markus | last post by:
Things to discuss: Headers What are they? What does PHP have to do with headers? Why can they only be sent before any output? Common causes
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.