Gossamer Forum
Home : General : Chit Chat :

preventing view source to keep html hidden ?

Quote Reply
preventing view source to keep html hidden ?
Hi,

I was just wondering is there a way to preventing people from viewing the source of html codes.

I know internet explorer has the view source option.

but is there a way so when some one clicks view source it gives them an error message or no html appears

Thanks
Quote Reply
Re: [incik] preventing view source to keep html hidden ? In reply to
nope. you can block viewing source from the right-click context menu in IE, but it's still accessible from the menu bar. even if you could completely block it from the browser, it would still be accessible from the cache.

if you're that worried about someone seeing your code, maybe try obfuscation algorithms with JavaScript or convert your site to PDF format to deter theives with little patience.

One thing I've seen countless times are web sites that were captured with a screenshot and spliced apart and put back together into dozens of tables.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] preventing view source to keep html hidden ? In reply to
StormPay.com had a quite cool way (anyone who's a member, take a look at their IPN manual .. and try to view the source).

Looks like they use base64 to encode it; but I'm not quite sure how/if a browser can decode this reliably, and with a reasonable amount of speed?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [incik] preventing view source to keep html hidden ? In reply to
I remember seeing something once.

A small piece of javascript code in a html file included the main html file sort of like an SSI include. So when you looked at the source all you saw was the javascript code - the main html file was in a protected folder with a .htaccess file denying GET.
Quote Reply
Re: [Orbital] preventing view source to keep html hidden ? In reply to
those are calling external JavaScripts via the location attribute... while the server prevents you from directly viewing it (ie, without a valid referer), you can still simply dig into your Internet cache for a copy after visiting any page that uses the script.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [incik] preventing view source to keep html hidden ? In reply to
There is no fool proof way to hide your html code. If some one really wants it and has enough smarts they will get it.
You can though hide it enough to stop mr average from rapeing your site.
Do a google search using "hiding html".
Here are a couple of links from the search -
http://mytoowoomba.com/scripts/
http://www.ioncube.com/html_encoder.php
http://www.antssoft.com/htmlprotector/index.htm
http://www.htmlsafety.com/

Bob
http://totallyfreeads.com.au
Quote Reply
Re: [incik] preventing view source to keep html hidden ? In reply to
Hi.



(1) http://www.htmlprotect.com/

Encrypt your html page ... however, your site could be adversely affected on search engine listings.

With following around, see what it can do:

(2) http://www.httrack.com/

With good speed, entire site (unprotected area) can be downloaded.

The latter could be used by any visitor who may want to use it to circumvent attempts in 1, though the source in any editor would still show scrambled stuff...

HyTC