Skip to content

Finland93/AllInOneContentProtection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All in One Content Protection — WordPress Plugin

Deters casual copying of your content. Disable right-click, text selection, copy/cut, image dragging, common keyboard shortcuts and printing — each toggleable from a settings page — plus a configurable developer-console warning.

Note: these protections run in the visitor's browser, so a determined user can still get around them. Treat this as a deterrent against casual copying, not as DRM.

Features

  • Settings page under Settings → Content Protection with an on/off switch for every protection.
  • Disable right-click, selection/copy/cut, image & link dragging.
  • Block Ctrl/Cmd + C/A/U/S/P/X and dev-tools shortcuts (F12, etc.) — without interfering while typing in a field.
  • Print protection.
  • Configurable console warning (title + message).
  • Guests only option so logged-in editors can still work normally.

What changed in 2.0.0

  • Added the settings page the old README promised but never shipped — every protection is now toggleable.
  • Proper asset handling. 1.0 echoed a <style> and <script> straight into the page; this version enqueues a script and attaches CSS via the stylesheet API.
  • Fewer side effects. Form fields stay selectable, image links keep working (no more pointer-events:none), and shortcut blocking won't fire while you're typing.
  • Added a "guests only" mode, a configurable console message, and a clean uninstall.

Manual use (non-WordPress sites)

You can still drop the equivalent CSS before </head> and JS before </body> — see the plugin's assets/protection.js for the script.

License

GPLv2 or later — see LICENSE.

Author: Finland93

About

WordPress plugin empowers you to safeguard your website's content effortlessly. With just a click, this plugin adds an extra layer of security and protection to your valuable text, images, and multimedia elements. It prevents unauthorized actions and enhances your website's copyright protection.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors