=== Accelvia – Content Protection === Contributors: musfiqurrahman Tags: content protection, disable right click, disable copy, image protection, watermark Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 1.2.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Enterprise-grade WordPress content protection with anti-copy, screenshot prevention, DevTools detection, and watermarking. == Description == Accelvia Content Protection is a powerful, zero-dependency WordPress plugin that provides multi-layered, enterprise-grade content protection to deter content theft. It goes far beyond basic right-click blocking with advanced security features including DevTools detection, cross-platform screenshot prevention, encrypted HTML delivery, and canvas-baked watermarking that survives image downloads. ### Content Protection Features * **Disable Right Click (Context Menu):** Prevent users from right-clicking to save images or view source. * **Disable Keyboard Shortcuts:** Blocks common developer and save shortcuts like F12, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+U, Ctrl+S, and Ctrl+P. * **Disable Text Selection:** Prevents highlighting and selecting text on the page. * **Disable Image Drag:** Stops users from dragging and dropping images to save them. * **Disable Copy (Ctrl+C):** Blocks the standard keyboard shortcut for copying content. * **Modern Notifications:** Display a sleek, auto-dismissing toast notification or a standard browser alert when a user attempts a blocked action. Customise the notification message to fit your brand. * **Granular Control:** Exclude specific post types, exclude specific page/post IDs, or bypass protection entirely for logged-in administrators. * **Immediate Head Guard:** Protection activates instantly in the `` before the page body loads, eliminating any race condition during hot-reload or slow page loads. * **JavaScript Required Guard:** When JavaScript is disabled in the browser, all page content is hidden and a friendly message is shown, since protections depend on JavaScript. * **Zero Dependencies:** Built with pure Vanilla JavaScript and no jQuery, ensuring zero impact on your site's load time. ### DevTools Detection * **3-Layer Detection Engine:** Monitors for Developer Tools opened from any method — keyboard shortcuts, browser menu, or undocked windows. * **Window Size Delta Detection:** Catches DevTools docked to the side or bottom of the browser. * **Console Getter Trap:** Detects when the DevTools Console tab is actively inspecting objects. * **Debugger Timing Detection:** The most reliable method — catches ALL DevTools modes including undocked and menu-opened. Uses cached Function objects for optimal performance. * **Full-Page Blur Overlay:** When DevTools is detected, the page content is blurred and a professional overlay warns the user to close DevTools. * **DOM Encryption on Detection:** When Encrypted Content is enabled, all readable HTML is removed from the DOM and replaced with base64-encoded data while DevTools is open. The Elements panel shows only encrypted gibberish. Content is fully restored when DevTools is closed. ### Encrypted Content (Source Protection) * **Base64 Body Encoding:** The HTML body content is base64-encoded on the server and decoded by JavaScript at runtime. Typing `view-source:` before the URL shows encoded gibberish instead of readable HTML. * **SEO-Safe:** Search engine crawlers (Googlebot, Bingbot, Yandex, Baidu, DuckDuckBot, etc.) and social media bots (Facebook, Twitter, LinkedIn, WhatsApp, Pinterest, Telegram) are automatically whitelisted and receive raw HTML for proper indexing and link previews. * **Layout-Safe Minification:** HTML is minified before encoding with full protection for `
`, `