I dont like if users can see my HTML code what can i do?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PamorAuthor Commented:
Edited text of question.
HTML code  - You can't do anything
              about it.

Javascript - You can "hide" but people  
              can still find it easily.

Java       - Your actual code is


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hello Pamor
Do you want to say that you never looked at someone elses page source? Its hard to believe!
As far as I know its pretty impossible to prevent the user form viewing your source code. The only thing you can do is make it difficult to read or use server based stuff like cgi scripts which can create pages on the fly.
If your interested in making the html code difficult to read then use a tool to scramble or compress the html code.
There is a free software available called 1st Page 2000 from 
This software has a tool called HTML source compressor. This will make your code look a bit like a binary file... no spaces, no returns, removes unneeded tags, etc. Reduces the size by approx. 20%. Big pages end up looking very messy.
The software beats Front Page Express and has many more good tools.
   As i know, you can't hide your code (unless you are using active server pages[ASP])
   Anyway, I can tell that you may hide your javascript by
<SCRIPT LANGUAGE = Javascript src = xxx.js>, however, we can still download the *.js file for us to view the code.
   Regarding to Java, this is the most secure, it will not show it's 'content' at ALL ! Because it is in bytes-code !

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.