How to Prevent Copy and Paste From Website

| Last Updated: | In: Freebies, HTML / CSS, Javascript & Ajax


Hi friends, hope you are doing good. Today i am going to share a simple javascript code which will help you to protect your web page content. If you want your users do not copy contents or information from your web page for his personal purpose, so below is simple javascript code to disable copy & paste and disable mouse right key click features from your webpage.

Disable copy and paste features from web page

Copy below code snippet and add this before head tags in your web page to disable the copy features from your web page.

Disable mouse right key click on web page

disable-mouse-right-click

Download      Demo

Here is the simple code which will stop your visitor to viewing your source code buy mouse right key click. Please remember if someone really wants to view your source code they can because there are other ways to do it. Add below code before head tags in your web page.

Read:

How to submit multiple forms with jQuery and Ajax
A clock-style timepicker for Bootstrap
Submit Checkbox values in Form with javascript

If you like this article, subscribe our newsletter and share it with your friends!

Tags: , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 380+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW
Copyright © 2013-2017