How to hide the source code of a HTML page

前端 未结 4 670
青春惊慌失措
青春惊慌失措 2021-02-04 20:58

I created an HTML page and now would like to hide the source code and encrypt it.

How can I do that?

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 21:36

    You cannot hide the source code, but you can add some difficulties to see your source code by following way

    1. Disable right-click:

    
    

    2.Disable ctrl, u, F12 keys:

    
    

    3. Add to lots of white spaces to before you staring your codes

    it may fool someone

提交回复
热议问题