No, you cannot hide the displayed HTML text on your web server.
How HTML is generated is a separate form of actual HTML that is sent from the server.
That is how the Internet and the global network were developed. If you use a server-side web application to generate your HTML code, then your business analyst / process / code is hidden provided that people do not have access to view the actual script file on your server.
If you want to configure one of the open source browsers, such as Firefox or Chrome, you can disable the "view source" functionality. This might be a good option for some intranet or internal business applications. XUL and Firefox are one of the ways our company can control end-user access. The only real security with which you must protect your source is on the server side, since network / protocol monitors can still pull on HTML when it moves across the network.
source share