Block access to a site's source code

0

There is some way to block access to the source code of a site in browsers firefox, chrone, Opera and Safari, preventing access in the following ways through the right mouse button, use of the control + u keys or direct access through the browser menu by the option to see source code?

    
asked by anonymous 20.08.2015 / 06:32

1 answer

4

The code executed by the client-side is accessible by the user. The most you can do is to block the right mouse button and keys through JavaScript, but, it can not prevent the user from accessing the browser menu. Minimize JS, to make it difficult to read who tries to view the source.

Remember: Business rules must be run on server-side.

    
20.08.2015 / 07:10