Mobile menu

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

Roomy Naqvy  Identity Verified
Local time: 22:27
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: 17:57
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: 17:57
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: 17:57
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: 17:57
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: 17:57
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
You’re a freelance translator? helps you manage your daily translation jobs. It’s easy, fast and secure.

How about you start tracking translation jobs and sending invoices in minutes? You can also manage your clients and generate reports about your business activities. So you always keep a clear view on your planning, AND you get a free 30 day trial period!

More info »
memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »

All of
  • All of
  • Term search
  • Jobs