Web pages anti-theft code

zhaozj2021-02-16  117

The web code is the production of the manufacturer's labor, but some people can steal the original code of the web through the browser or other means, so we need some prevention measures.

-------------------------------------------------- -------------------------------------------------- -

1. οncοntextMenu = "window.event.returnvalue = false" // Rightly shields the mouse button

no // can be used for Table ------- -------------------------------------------------- -------------------------------------------- 2. // Cancel to prevent copy ----------------------------------- -------------------------------------------------- --------------- 3. Οnpaste = "return false" // is not allowed to stick -------------------- -------------------------------------------------- ------------------------------ 4. Οncοpy = "Return False;" oncut = "Return False;" / / Prevent copy

-------------------------------------------------- -------------------------------------------------- --5. / / Prevent people from Frame