sandywp / plugins / init-content-protector

Init Content Protector

Anti-Copy, Anti-Scrape, Encrypt-All

5.0 out of 5 stars. 5.0 2 reviews

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

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.10 60+ installs WP 5.7+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Init Content Protector – Anti-Copy, Anti-Scrape, Encrypt-All running inside a SandyWP sandbox

What you get inside

3 screens
  • Content Protection – Post types, protection scope (all posts or only switched-on posts), encryption mode, loading skeleton color scheme, encryption key, key…

  • Advanced Browser Protection (Experimental) – Advanced DevTools blocking, anti-screenshot protection (Init AntiSnap), noise injection and its rate, and…

  • Global Exceptions – User roles excluded from every protection layer, and important notes on using the plugin.

About this 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.

Questions

Will this affect SEO?

If you enable full content encryption, search engines that do not run JavaScript will not be able to see the content, and even those that do (such as Google) may not index it reliably. Only use this option if SEO visibility is not required, and test your pages (for example with the URL Inspection tool in Google Search Console) before deploying.

Does this plugin support custom post types?

Yes. You can choose which post types are protected in the settings page.

Can I protect only some posts instead of every post of a post type?

Yes. Since 1.10, set Protection Scope to Only posts where protection is turned on. Nothing is protected until you switch a post on: tick Protect this post in the Content Protection box of the post editor (classic and block editor), or select several posts on the post list and use the Turn content protection on bulk action. A lock column on the post list shows which posts are protected. Only the post types chosen under Apply Protection to Post Types get the box.

In this mode every layer follows the switch: encryption, noise and keyword cloaking apply to switched-on posts only, and JavaScript Content Protection, Advanced DevTools Blocking and Anti-Screenshot Protection only load on those posts instead of on every page of the site. The switches are kept when you change the scope back, so you can move between both modes freely.

Developers can decide per post with the init_plugin_suite_content_protector_is_protected_post filter.

Can I use my own encryption key?

Yes. You can set a custom key per site for added security.

What’s the difference between “Inline” and “Enhanced” key delivery?

Inline embeds the decryption key directly in page HTML — simple and works everywhere, but readable via view-source. Enhanced fetches the key from a REST API endpoint after page load instead, keeping it out of cached/static HTML and working cleanly with full-page cache plugins. Neither mode makes content truly secret from a visitor running the page’s own JavaScript — both are meant to raise the bar for casual scrapers, not stop a determined human.

Is the “Enhanced” REST API endpoint rate-limited?

No, intentionally. Rate-limiting by visitor IP would mean storing one database row per unique IP with no automatic cleanup — on a busy or bot-scanned site that bloats the database worse than the scraping it aims to prevent. If you need rate limiting, apply it at your server, CDN, or WAF layer.

Does this work with AMP?

The plugin automatically detects AMP endpoints and skips all protection there (JS injection, encryption, noise), since AMP doesn’t allow the custom scripts these features rely on.

Can I control how much noise is injected?

Yes, via the “Noise Injection Rate” setting (1–50% per word, default 7%). Noise is only ever inserted into plain text — never inside HTML tags or inside elements like <script>, <style>, <select>, or <svg> — so it can’t corrupt markup.

5.0

2 reviews

  • 5 ★ 2
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.