Mobile menu

How to hide source code on HTML pages?
Thread poster: Roomy Naqvy

Roomy Naqvy  Identity Verified
Local time: 14:57
English to Hindi
+ ...
Aug 24, 2003

Dear All,
I would like to know how it would be possible to hide source code on HTML pages with both NO RIGHT CLICK as well as NO VIEW SOURCE. I have found freeware javascripts which do disable right click but they are of no help because they still allow View Source. Any ideas?

Direct link Reply with quote

Michael Bastin  Identity Verified
Local time: 11:27
English to French
+ ...
no luck neither Aug 24, 2003

I also only have found some javascript to disable right-clicking, but never found any to disable the view source function. All I have heard is that any protection can't prevent any advanced webmaster to review your code.

Good luck, also curious to know.

This might help you to encrypt partially your source code:

Direct link Reply with quote
bergazy  Identity Verified
Local time: 11:27
Croatian to Italian
+ ...
Atrise HTML lock Aug 24, 2003

Maybe this software will suit your needs.

Direct link Reply with quote

Gerard de Noord  Identity Verified
Local time: 11:27
Member (2003)
German to Dutch
+ ...
You can't really hide HTML source code Aug 24, 2003

Michael Bastin wrote:

All I have heard is that any protection can\'t prevent any advanced webmaster to review your code.

That\'s right. You can make it more difficult to read but you can\'t protect your source code.


Direct link Reply with quote

Natalie  Identity Verified
Local time: 11:27
Member (2002)
English to Russian
+ ...

Yes, HTML code cannot be really hidden, Aug 24, 2003

there is no real way to stop people from veiwing your html, if someone is determined to see your code they will. But there are lots of ways to lock, password-protect or encrypt it:

To begin with, take a look at this page:

Some more examples:


Free 30-day trial available:

Another one:

If it isn't enough, just go to Google, type in "hide source code HTML" and press enter...

Direct link Reply with quote

Uwe Kirmse  Identity Verified
Local time: 11:27
Polish to German
+ ...
You can't hide it, but... Aug 24, 2003

...there is a nice trick, that makes it seem to be hidden. Just have a look at my homepage Just click at "view source code" and have a look, what is displayed. If you scroll down, you'll find the code of course, but some people may believe, that it's really hidden. (The words "Geschützter Quellcode - zrodlo chronione" in the first line mean "Hidden source code", in German and in Polish.) In the source code you'll also find a Java script for "no right click". You may use it, it's from the page, where you can find more nice scripts.

Direct link Reply with quote

To report site rules violations or get help, contact a site moderator:

You can also contact site staff by submitting a support request »

How to hide source code on HTML pages?

Advanced search

Wake up in the Morning and see that you have sold TMs and made Money overnight

The TM Market Place for Translators
New: Our Instant TM Download
TM owners: Upload your TMs into the online database
Customers: Analyse your text & instantly download a text-specific TM
Well over 1.2 BILLION translation units

More info »
Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »

All of
  • All of
  • Term search
  • Jobs