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

truly unscoopable code


One of the benefits of coding in php is that a user can't view your
actual php source, only the html it produces. Are there reasonably
simple techniques to avoid having the html scooped also?

My application is that of developing prototypes for perspective
customers while protecting my code until the sale goes through..
Keeping the PHP code under wraps is easy enough, but the html that the
code produces has value also.

Suggestions?
Ron
-
http://www.christianfamilywebsite.com
http://www.iswizards.com
Definition: Nelp: Contraction of "no help". Colloquial: Help
messages that are of no help whatsoever. Pretains to help files,
messages or documentation that convey no useful information, or
pedantically repeat the blindingly obvious.
Jul 16 '05 #1
8 2061
With total disregard for any kind of safety measures Ronald O.
Christian <ro**@europa.com> leapt forth and uttered:

One of the benefits of coding in php is that a user can't view
your actual php source, only the html it produces. Are there
reasonably simple techniques to avoid having the html scooped
also?

My application is that of developing prototypes for perspective
customers while protecting my code until the sale goes through..
Keeping the PHP code under wraps is easy enough, but the html
that the code produces has value also.


There are many people/websites that claim it is possible to
hide/obfuscate/encrypt html source. But they are all wrong. Most of
the above techniques generally rely on Internet Explorer-specific
ActiveX or Javascript hacks and serve to do nothing but annoying
your visitors.

If you don't want people to download it, then don't upload it.

There isn't anything in anyones html worth stealing anyway.

--
There is no signature.....
Jul 16 '05 #2
Ronald O. Christian wrote:
One of the benefits of coding in php is that a user can't view your
actual php source, only the html it produces. Are there reasonably
simple techniques to avoid having the html scooped also?


Nope, not possible in the slightest. The HTML is parsed and rendered on the
client side. As such, the HTML will always be available to the visitor.

If you have reason to suspect that they are going to be less than honest,
set the caching directives on your website to no-store, password protect it
with a password only you know, and visit them personally to show it to
them. Make sure the password isn't stored, and close the browser before
leaving. Alternatively, show them print outs, or bring a laptop along. If
you don't care about the value of the graphic design, email them
screenshots.

--
Jim Dabell

Jul 16 '05 #3
On Wed, 16 Jul 2003 23:18:01 GMT, CC Zona <cc****@nospam.invalid>
wrote:
Technical workaround options notwithstanding...if you're pitching to people
so untrustworthy and if the HTML itself bears a significant portion of the
project's total value, then you've got larger business problems to address.
Dealing openly with those who can be trusted to honor basic intellectual
property rights is going to be much more effective than attempting to
outwit thieves. Determined thieves will always find a way. Meanwhile,
those who are honest will note your distrust and respond in kind. Not good.


I agree. The ideal solution would be one of which the honorable
customer would be completely unaware.
Ron
-
http://www.christianfamilywebsite.com
http://www.iswizards.com
Definition: Nelp: Contraction of "no help". Colloquial: Help
messages that are of no help whatsoever. Pretains to help files,
messages or documentation that convey no useful information, or
pedantically repeat the blindingly obvious.
Jul 16 '05 #4
Ronald O. Christian wrote:

One of the benefits of coding in php is that a user can't view your
actual php source, only the html it produces. Are there reasonably
simple techniques to avoid having the html scooped also?


Realisticlly no. However, you could obfustcate it using javascript, but
it'd be pretty weak to do so... basically instead of sending html to the
client, send something like

<html>
<head>
... ordinary head stuff like title, css other javascript ...
<script language="Javascript">
window.onload = function() {document.body.innerHTML =
'..huge ass javascript safe string containing html for body
"obfuscated" by having each character as hex/octal escape string';}
</script>
</head>
<body>
Content Loading.
</body>
</html>

But like I say, it's weak, probably troublesome and fairly crappy.

--
James Sleeman
Gogo:Code, http://www.gogo.co.nz/
PHP & Coldfusion Programming Services
Email domain : gogo.co.nz see user in from header!
Jul 16 '05 #5
With total disregard for any kind of safety measures Ronald O.
Christian <ro**@europa.com> leapt forth and uttered:
I'm thinking specifically of rendering the HTML as an image and
displaying the image (a gif or jpg) instead of the code. But
although I can do this "by hand", I don't know of a way to do it
dynamically.


Incredibly bad idea. Not only will your site be extremely slow to
load, suck up tons of bandwidth and be generally annoying but it
will make your chances of good search engine rankings vanish
completly.

Understand this: There is nothing in your html source worth
stealing. Nothing at all. Therefor going to great lengths to
conceal it is pointless.

--
There is no signature.....
Jul 16 '05 #6
Ronald O. Christian wrote:
On Wed, 16 Jul 2003 16:20:32 -0400, Joshua Ghiloni
<jd***@SPAM.ME.AND.DIE.cwru.edu> wrote:
That's utterly impossible. You have to pass the HTML to the client for
the browser to render it.

I'm thinking specifically of rendering the HTML as an image and
displaying the image (a gif or jpg) instead of the code. But although
I can do this "by hand", I don't know of a way to do it dynamically.

Parenthetically, apologies if my original article was posted multiple
times. My news server seems to be having problems at the moment.
Ron
-
http://www.christianfamilywebsite.com
http://www.iswizards.com
Definition: Nelp: Contraction of "no help". Colloquial: Help
messages that are of no help whatsoever. Pretains to help files,
messages or documentation that convey no useful information, or
pedantically repeat the blindingly obvious.


In that case, as much as I hate to suggest it, may I suggest a flash
site? You can add dynamic content there, and give your users a "tour" of
the site. With regards to your image idea, see other posts regarding
bandwidth. In addition, don't forget that HTML is a rendering language,
so the same block of code will always appear exactly the same on every
computer using a certain browser. What that means is even if you've got
an image of your site, someone can look at it and with enough ingenuity,
recreate it by looking at it -- the web-design equivalent of playing by ear.

Jul 16 '05 #7
Ronald O. Christian wrote:
On Wed, 16 Jul 2003 16:20:32 -0400, Joshua Ghiloni
<jd***@SPAM.ME.AND.DIE.cwru.edu> wrote:
That's utterly impossible. You have to pass the HTML to the client for
the browser to render it.

I'm thinking specifically of rendering the HTML as an image and
displaying the image (a gif or jpg) instead of the code. But although
I can do this "by hand", I don't know of a way to do it dynamically.

Parenthetically, apologies if my original article was posted multiple
times. My news server seems to be having problems at the moment.
Ron
-
http://www.christianfamilywebsite.com
http://www.iswizards.com
Definition: Nelp: Contraction of "no help". Colloquial: Help
messages that are of no help whatsoever. Pretains to help files,
messages or documentation that convey no useful information, or
pedantically repeat the blindingly obvious.


In addition, I'd suggest you make potential customers sign a
non-disclosure agreement before entering into any negotiations with
them. I work for a Very Large Software Firm (TM) and it's common
practice here. That way, anyone who steals your code has very serious
legal consequences awaiting them. NDAs are very common and almost
impossible to beat in court.

Jul 16 '05 #8

I appreciate everyone's responses on this thread, even those who
didn't seem to understand the original question.

I was, of course, referring to prototype code, for which money has not
yet changed hands. If the customer buys the site, it's theirs. I'm
not trying to hang onto code that others have hired me to write, just
making sure I don't spend my time developing for free (unless I wish
to).

I guess an NDA is the way to go. I was hoping to find a technique
that was completely transparent to the ethical customer. It was worth
asking, but it's not that big of a deal.

Thanks again to those who responded.
Ron
-
http://www.christianfamilywebsite.com
http://www.iswizards.com
Definition: Nelp: Contraction of "no help". Colloquial: Help
messages that are of no help whatsoever. Pretains to help files,
messages or documentation that convey no useful information, or
pedantically repeat the blindingly obvious.
Jul 16 '05 #9

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

Similar topics

4
by: ketulp_baroda | last post by:
Hi Global variables are not truly global in Python ; they are only global within a module namespace. I want a variable such that if i change its value in any module then it should be reflected in...
5
by: UJ | last post by:
Is there any number I can get that is truly unique for a computer that can't be changed? I want to have a system whereby I have a computer that accesses a web service based on some unique value...
1
by: News Server | last post by:
Any help appreciated. I have two Access tables, customer and orders. I would like to create a truly hierarchical xml file form the joined tables. I need to produce: <Query1> <Customer>...
41
by: Mark R. Dawson | last post by:
I have never used a goto statement in my code, one of the first things I was told in my software classes a number of years ago was "goto statements are evil and lead to spagetti code - do not use...
23
by: Alvin | last post by:
Well, I'm developing a Tetris game in SDL, but when it comes to deciding the next block, I'm stuck. It's random, but when I try something like seeding the randomizer with the time, it won't update...
3
by: T Clancey | last post by:
Hi all. I've been working on a small and very simple label design app for a few days now, I've got most of my problems solved, although I'm sure there are some more just around the corner! ...
4
by: Mufasa | last post by:
I'm looking for a way to get a truly unique identifier for a machine for our client software. I'd like to have it so that there's little or no setup by the end user. (We set up the machines and...
114
by: Andy | last post by:
Dear Python dev community, I'm CTO at a small software company that makes music visualization software (you can check us out at www.soundspectrum.com). About two years ago we went with decision...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.