Click here to Skip to main content
15,898,999 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi all.,

any on know How to hide html sourse from user?
Posted

You can't. If the page is rendered, they can see the html that causes the render. You could create a flash page or silverlight, but even then, some HTML is required to allow those technologies to work.
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 2-Jun-11 6:25am    
no way to hide html?.
Sagotharan Jagadeeswaran 2-Jun-11 6:26am    
is it possible to hide at-least Content?.
It is impossible as any web browser has to be able to decrypt the html to display it, you can't use an encryption that you couldn't just write your own program to decode. If something on the web can be viewed, you can get the source, regardless . AJAX can be intercepted, similarly with Flash and Silverlight, if you try hard enough, you can crack anything in them or just intercept the content messages. It is impossible to allow a user to view something through conventional web technologies and stop them getting the source. If you are really desperate you could write a page that just has a flash object that uses SSL to download content and then display it, but then why are you using the web at all in that case because lots of people won't be able to use your site ;P Basically, what you're asking for, is impossible.



P.S. I would mark this as a rant if it were possible... ;P
 
Share this answer
 
v2
I don't think its possible but, yes you can encrypt it.
 
Share this answer
 
Comments
thatraja 2-Jun-11 6:23am    
Include links(for encription) if possible so OP can go through it.
Sagotharan Jagadeeswaran 2-Jun-11 6:25am    
no way to hide html?.
Sagotharan Jagadeeswaran 2-Jun-11 6:25am    
how to encrypt?.
Uday P.Singh 2-Jun-11 8:11am    
You can use the following link to encrypt your html code:
http://www.designerwiz.com/mf.htm?http&&&www.designerwiz.com/generator/encryptHTML.htm
Sagotharan Jagadeeswaran 2-Jun-11 8:14am    
thank u.
Perhaps you can consider using ajax. This will send the code asynchronous to the client. With javascript you can dynamically create your page or parts of it. If I'm correct in that case the user will not see the asynchronous sent code.

But:
- The code is sent to the client, and can be captured.
- This may take more effort to build.
- Can slow the page down to show up.
- This will also hide it from search engines.

So I wouldn't recommend it for an entire page, but you can use it for parts.

You can also add an extra level by obfuscating the javascript and adding iframes.
 
Share this answer
 
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 3-Jun-11 0:57am    
thank u!. i already known that!. it stop right click option,. but how to hide browsers menu source?.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900