Disable Printing, Screenshot, Copy and Paste in HTML JavaScript | NoPrint.js

NoPrint.js is a small, elegant, open-source JS library that disables HTML print, screenshot, copy, and paste functions. You can also enable the AutoBlur option to allow the content to blur as soon as the mouse leaves the web page. This will prevent most common users from taking screenshots. NoPrint.js can work on most popular web browsers such as Chrome, Edge, Firefox, and Opera.

disable right click and content copy protection, protected content plugin, how to disable copy text, content protector, website content copy protection, wp content copy protection & no right click


  • Disable copy and paste (right-click)
  • Disable Content Selection (CTRL + S)
  • Disable printing (CTRL + P)
  • Disable screenshot
  • It automatically blurs web content as soon as the mouse pointer leaves the content area.

How to make use of it:

1. Download the noprint.js library and upload it to the document.

<script type="text/javascript" src="noprint.js"></script>

2. Enable/Disable Content Protection Features:

var autoBlur=true;
var noPrint=true;
var noCopy=true;
var noScreenshot=true;

Variables of NoPrint.js

var noPrint=true;

noPrint will disable the CTRL + P hotkey and the print function. Even the visitor tries to print the web page through the browser menu or button, the content will change to a blank page during printing. You can set noPrint to false to turn off print protection.

var noCopy=true;

noCopy will disable text selection, right mouse button, CTRL + S (save web page), then copy and paste functions. You can set noCopy to false to turn off this protection.

var noScreenshot=true;

noScreenshot will disable the PrintScreen switch to prevent visitors from easily taking a screenshot of the webpage. You cannot set any screenshot to false to stop this.

var autoBlur=true;

autoBlur will turn all content on your webpage to blur as soon as your mouse pointer leaves the content area. The content can be changed again with a single click on the web page. This can prevent people from taking screenshots by third-party apps or the Snapshot function on the Opera toolbar. You can set autoBlur to false to disable auto-dimming.

Content Protection And Content Locking, Disable Print, Screenshot, Copy & Paste in HTML JavaScript Plugin/Github, website content protection

See Demo And Download

Official Website(sunxvogy): Click Here

This superior jQuery/javascript plugin is developed by sunxvogy. For extra Advanced Usages, please go to the official website.

Leave a Comment