跳到内容

Init Content Protector – Anti-Copy, Anti-Scrape, Encrypt-All

v1.10

Init HTML · 2025年8月8日 上架

Protect your content from copying, scraping, and inspection using JS blocking, keyword cloaking, noise injection, and optional full encryption.

正在使用
60+
评分
5.0 / 5
累计下载
1,858
最近更新
2026年11月20日
2 条评价需要 WordPress 5.7+已测试到 7.2PHP 7.4+

贡献者

截图

Content Protection – Post types, protection scope (all posts or only switched-on posts), encryption mode, loading skeleton color scheme, encryption key, key delivery, headless browser detection, verified search engine crawlers, visitor IP detection, content selector with auto-detect, and JavaScript content protection.
Content Protection – Post types, protection scope (all posts or only switched-on posts), encryption mode, loading skeleton color scheme, encryption key, key delivery, headless browser detection, verified search engine crawlers, visitor IP detection, content selector with auto-detect, and JavaScript content protection.
Advanced Browser Protection (Experimental) – Advanced DevTools blocking, anti-screenshot protection (Init AntiSnap), noise injection and its rate, and sensitive keywords to obscure.
Advanced Browser Protection (Experimental) – Advanced DevTools blocking, anti-screenshot protection (Init AntiSnap), noise injection and its rate, and sensitive keywords to obscure.
Global Exceptions – User roles excluded from every protection layer, and important notes on using the plugin.
Global Exceptions – User roles excluded from every protection layer, and important notes on using the plugin.

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
– 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

Use this plugin to harden your site’s content visibility while maintaining a smooth reading experience for real users. Its goal is to deter casual bots and crawlers — not to stop a determined human, since anyone who can see content can always screenshot or retype it.

Source Code

This plugin decrypts content with the browser’s built-in Web Crypto API. CryptoJS is bundled only as a fallback for sites not served over HTTPS or browsers without Web Crypto.
– Minified version: assets/js/crypto-js.min.js
– Source version: GitHub Repo

This plugin optionally uses disable-devtool (MIT licensed) for the “Enable Advanced DevTools Blocking” setting.
– Minified version: assets/js/disable-devtool.min.js
– Source version: GitHub Repo

This plugin optionally uses “Init AntiSnap 6.0” by Init HTML (MIT licensed) for the “Enable Anti-Screenshot Protection” setting.
– Vendored as its full, human-readable source (not minified): assets/js/init-antisnap.js

License

This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums