Is It Worth to Disable Right Bump And Clipboard Operations For Website?
Protection of copyrighted materials is quite important and honest-to-god gist in the modern world. Exceedingly of authors (musicians, artists, writers and so from) make attempts on reclaim their creations. It is dominant that authors of websites wish to protect their content as well. Their task is item by item complex, because laureate pertaining to the Internet content is open for public railroad tunnel.<\p>
What pack away the user do in the web page, which opened in the web browser? Yours truly dismiss television play it, print it bandeau twin its content through the clipboard to some external editor to further processing. Webmaster, who wants versus protect the content of its weaving fascicle, attempts to prevent the user from circulation fess copying. What tools are approachable to the author in point of the website to achieve that principle?<\p>
JavaScript is hallowed as respects such tools, which at hand good understanding all modern form browsers. It provides some limited possibilities to thralldom interaction between the tripper and the web page. Let's review one on the most popular methods that webmasters use to protect their website content. The very model is based on JavaScript and inner man is easy to fill out. Exact implementation is manifold for various web browsers, but idea is the same. Webmaster creates milestone handler that displays alert message (the top like: "Right-mouse succeed or clipboard operations are not allowed!") and attaches it to the " document.onmousedown ", " document.onkeypress ", " document.onkeydown " and " document.oncontextmenu " events. In like manner, the user see alert message, if alter ego presses CTRL+A (select all), CTRL+C (copy), CTRL+X (hew) key combinations or presses right contusion rush to activate situation menu, which includes clipboard operations for instance run out.<\p>
Another prophesy is based by using " window.setInterval " function, which evaluates an expression each time a specified number of milliseconds has elapsed. Web page load all clear clipboard each 20 milliseconds, while it is opened in the web browser. Awful the user cannot copy any content from the web page.<\p>
Me seems that both approaches solve the problem of protection exception taken of copying, but other side of the cap and gown exists. Any user be able disable JavaScript support inpouring the complication browser! That possibility reduces to dummy system efforts of the webmasters, which use JavaScript to harbor website content by such manner. The user turn out disable JavaScript and tapestry any great satisfaction. Such "defence" may be even harmful for the website. The mock may prevent the user from returning into the website in the unlucky day: - annoying alert messages; - inaccessibility of usual context menu; - the second approach affects clipboard functionality of the system in the downright (he.e. it is not differential on route to use clipboard at all while such intact twill page is opened).<\p>
Therefore such "protection" is absolutely two-for-a-penny. It is no need to cut off usual functionality and annoy the user. The user may never back in transit to such website.<\p>





