Init Content Protector – Anti-Copy, Anti-Scrape, Encrypt-All
Init Content Protector is a powerful yet lightweight plugin that safeguards your post content from unauthorized copying, scraping tools, and inspection via browser developer tools. This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPr
Init Content Protector is a powerful yet lightweight plugin that safeguards your post content from unauthorized copying, scraping tools, and inspection via browser developer tools.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-content-protector
Features: – JavaScript-based copy protection (blocks selection, right-click, print, DevTools access) – Advanced DevTools blocking (optional, powered by the third-party disable-devtool library) — detects DevTools being opened through multiple methods, not just keyboard shortcuts, and closes or redirects away from the tab – Anti-screenshot / anti-scraping-tool detection (optional, powered by “Init AntiSnap 6.0”) — recognizes the evenly spaced, step-by-step scrolling of scroll-and-stitch capture tools and DevTools full-size captures, and briefly blurs the page with a warning – Full AES-256 content encryption with client-side decryption via the browser’s built-in Web Crypto API (CryptoJS is only loaded on sites not served over HTTPS, or on demand as a fallback) – Inline delivery (default, simple) or Enhanced delivery (fetches the key via a REST API endpoint after page load — keeps it out of cached/static HTML, cache-plugin friendly) – Encryption is done fresh on every request (about a third of a millisecond), so members-only or per-user content can never be served to the wrong visitor from a cache – Fails open gracefully on hosts missing OpenSSL/PBKDF2 support, instead of breaking the page – Optional Headless Browser Detection: withholds decryption from sessions that look like Puppeteer/Playwright/Selenium, scored across several client-side automation signals so no single false-positive blocks a real visitor; verified search engine crawlers (Googlebot, Bingbot…) are let through by reverse DNS check – The WordPress REST API ( /wp-json/wp/v2/… ) and the RSS/Atom feeds no longer hand out the content of protected posts while Encrypt or Lazy Load is on: a short message replaces it – Lazy Load mode (lighter than encryption): the page is sent without the article, and a script fetches it through the REST API only after the visitor’s browser has been verified — with a Retry button if the check fails – Stateless verification (short-lived signed token with a minimum wait, nothing stored in the database) that works behind full-page caches – The browser-side verification module ( window.InitContentVerify ) and its PHP counterpart are reusable by other code – Keyword cloaking using CSS pseudo-elements (whole words only, Unicode aware, never inside HTML attributes or code blocks) – Invisible noise injection to confuse crawlers — class names are generated for each post and rotate daily, the hiding rules are printed in the page itself, and look-alike decoy elements wrap some real words, so noise cannot be stripped with a fixed list; only ever injected into plain text, never inside HTML tags or inside <script> , <style> , <pre> , <select> , <svg> , and similar elements; injection rate is configurable (1–50%) – Automatic AMP detection — protection is skipped on AMP endpoints instead of producing invalid markup – Per-post type configuration, protecting either every post of those types or only the posts you switch on (editor box and bulk actions) – Excluded user roles (protection never applies to selected roles) – Custom encryption key per site – Custom content selector support, with an Auto-detect button in settings