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 by 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.

Also Read:

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

How to protect WordPress blog conetent

If you are using the WordPress website, then you can simply use a WordPress plugins to protect your website/blog content from the copy. Install the WP-CopyProtect [Protect your blog posts] WordPress plugin in your website. The installation of this plugin is very simple & easy as other plugins are. If you have just started with WordPress Read:

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:

Get Free Access of 450+ 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

Free WordPress Setup Service

Free WordPress Setup

Want to Setup WordPress Blog Setup? I will help you in the setup of your WordPress blog.

Click Here

Discount Coupons

Pincode Finder

pincode-finder tool

Online Pincode Finder

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

SEARCH NOW