Is it possible to make the HTML source not viewable?

Updated: 04/26/2017 by Computer Hope

View source codeIn short, there is no real method or script for making standard HTML source code not viewable. You may consider doing any of the below if they are concerned about your source code.

  1. Create the web page in Flash or a similar program. The visitor would need to download the Macromedia Flash plug-in and would be unable to view the source code for the flash applet.
  2. There are various scripts that will disable the right-click feature, preventing the user from saving images or viewing the source code. However, this will not protect the source code of your page. For example, Internet Explorer users may still click "View" and "Source" to view the source code of the page, or a user could disable scripts. Additionally, images can be stored by saving the web page to a hard drive.
  3. There are programs that can scramble your code, making it difficult (not impossible) to read. Again, this is not going to prevent someone from viewing your code.

Additional information