Protecting the Source Code..
Since I don't know what forum to post this at, I was wondering if anyone knew of a way ot protect the source code [even from 'view source.']
I remember seeing somewhere that you could do this, I..uhh..think.
Mike Fisher - TWF Conquerer
"Don't trust a spiritual leader that cannot dance."
richjb posted this at 03:05 — 14th August 2000.
They have: 193 posts
Joined: Feb 2000
You can disable people from right clicking, but stopping them from using the "File Edit View..." bar you can't. I mean, if you do a pop up window you can eliminate it. But if I really wanted to code, then I would just visit the page where it isn't in that mode...so there isn't any possible way.
However, you can do a popular PERL tactic, put all your code on one line. Of course, it doesn't work as well in HTML, but atleast it may confuse the less advanced.
Richard
richjb::365
[email protected]
Everyone here has a website. It's just that not all are worth posting (Mine! ).
Mike Fisher posted this at 11:42 — 14th August 2000.
They have: 429 posts
Joined: Jul 2000
Hmm. Man, I remember something like that. Maybe it was some PHP Program or some other dingy.
Oh well, I just don't want those punks stealing my hard work [which they have done in the past.]
Mike Fisher - TWF Conquerer
"Don't trust a spiritual leader that cannot dance."
Annette posted this at 16:15 — 14th August 2000.
They have: 4 posts
Joined: Aug 2000
There really is no way to hide the source of a page, barring not putting it up at all. If someone wants it, they'll find a way to get it. Disabling right click? Nope, annoys lefties, and View -> Source still works. Take away the menu and disable right click? Nope - right click (and hold), hit enter, release the mouse button, view source. Position the mouse somewhere on the page and hit the context key (generally between the alt and ctrl keys for Windows users), and up pops all the options.
I've seen an example like rich has stated - putting all the source on one line. But you can still drag that into a text editor and have it do a reformat for you. I've also seen one that ran the code through some sort of randomizer before presenting it, but that's easily reversed.
This is a topic that comes up a lot (a lot!) in alt.www.webmaster. No one has come up with a page yet that successfully hid the source. Of course, if you come up with one, it will win you fame and fortune (well, maybe not fortune)...
Annette
Hosting Matters, Inc.
http://www.hostmatters.com
fairhousing posted this at 21:32 — 14th August 2000.
They have: 1,587 posts
Joined: Mar 1999
interesting topic, it's got me think about code security now, hmm.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.