Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if anyone browse my application he will able to see my page view source code.i want to do this like whenever i go to facebook page and press cntrl+u then it shows encrypted code or ambigious code how to make it like that in my mvc application any sugguetion?

What I have tried:

i have tried some javascript code
Posted
Updated 24-May-16 23:47pm
Comments
Raje_ 25-May-16 5:39am    
Did you mean you want to encrypt your page view source? right?

Frankly speaking you can't. But there are some workaround.

You can find your answer here :

http://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm[^]

:)
 
Share this answer
 
Facebook just constructs its elements using javascript\ajax and some kind of templating system. The resulting html is still visible via the browser's dev tools (F12 then explore the DOM). You can't hide or secure html set to the browser.
 
Share this answer
 

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