Beschrijving
Most content protection plugins only disable right click. Scrapers and AI crawlers never click: they download the HTML, read the REST API and the feeds, or drive a headless browser. ScrapeLock stops them on your server, where the copying happens, and leaves real visitors, shoppers and search engines alone.
- Runs on your own server. No account, no API key, and no visitor data sent anywhere by default.
- Starts in Monitor only. For its first 7 days it only logs what it would block, so you can tune it first.
Key features
- AI crawlers and fake bots: blocks AI training crawlers (GPTBot, ClaudeBot, CCBot, Bytespider…) and fake Googlebot or Bingbot, checked against the official IP lists and DNS. AI search assistants can stay allowed.
- Limits and blocks: per-IP limits for pages, search, REST / GraphQL, 404s and WooCommerce cart and coupon attempts, temporary blocks (also at Cloudflare or Bunny CDN), Emergency Mode and a human check without a captcha.
- Your text stays yours: post text hidden from the REST API, WPGraphQL and full-text RSS, private XML feeds with a token, a TDM opt-out, watermarks, and traceable copies and screenshots for members.
- Attacks and Vulnerable points: see where bots attack (failed sign-ins, XML-RPC, scanner probes) and lock those points with one click.
- Page cache and servers: a pre-cache check, and ready-made Nginx, Apache and Cloudflare rules.
- Stealth (optional): hides that the site runs on WordPress from BuiltWith, Wappalyzer and scanners.
- Lockdown: freezes plugins, themes, users and settings until you unlock it with your authenticator app.
- Traffic: every request from your CDN, your access log or WordPress, with User-Agents, failing pages and email alerts, kept in your own database.
- Check a request, Site Health and WP-CLI: see why a request would be allowed or blocked, without side effects.
What it cannot do
Whatever a visitor sees has already reached their device, so nothing stops a person copying by hand or taking screenshots. ScrapeLock closes the automated routes and leaves traces: watermarks, a source link on copied text and a TDM declaration.
The full feature list and more answers are in the user guide.
External services
ScrapeLock downloads public lists of IP addresses, only for the features that use them. Each download is a plain GET request for a public file, made from your server by WordPress (User-Agent “ScrapeLock/version”). No data about your site, your content or your visitors is sent, and the request does not include your site address; as with any download, the provider sees your server’s IP address. The lists are stored in your database (or, for the country database, in uploads/scrapelock-geo) and checked on your server. They are data, not code or assets: no script, style, font or image is ever loaded from these addresses.
- Google crawler IP ranges, to tell real Googlebot from fakes. Downloaded once a day while protection is enabled, from https://developers.google.com/static/search/apis/ipranges/googlebot.json, https://developers.google.com/static/search/apis/ipranges/special-crawlers.json and https://developers.google.com/static/search/apis/ipranges/user-triggered-fetchers-google.json. Provided by Google LLC: Terms of service, Privacy policy.
- Bing crawler IP ranges, to tell real Bingbot from fakes. Downloaded once a day while protection is enabled, from https://www.bing.com/toolbox/bingbot.json. Provided by Microsoft Corporation: Terms of service, Privacy policy.
- Apple crawler IP ranges (3.10), to tell real Applebot from fakes without a DNS lookup. Downloaded once a day while protection is enabled, from https://search.developer.apple.com/applebot.json. Provided by Apple Inc.: Terms of use, Privacy policy.
- DuckDuckGo crawler IP addresses (3.10), to recognize the real DuckDuckBot. Downloaded once a day while protection is enabled, from https://duckduckgo.com/duckduckbot.json. Provided by Duck Duck Go, Inc.: Terms of service, Privacy policy.
- Cloudflare IP ranges, to read the real visitor IP only from Cloudflare. Downloaded once a day only when “Real visitor IP” reads the CF-Connecting-IP or X-Forwarded-For header and “Trust Cloudflare addresses” is on, from https://api.cloudflare.com/client/v4/ips. Provided by Cloudflare, Inc.: Terms of service, Privacy policy.
- Bunny CDN edge server addresses, to read the real visitor IP and country only from Bunny CDN. Downloaded once a day only when “Trust Bunny CDN addresses” is on and “Real visitor IP” reads the X-Real-IP or X-Forwarded-For header, or country rules are set, from https://bunnycdn.com/api/system/edgeserverlist and https://bunnycdn.com/api/system/edgeserverlist/IPv6. Provided by BunnyWay d.o.o. (bunny.net): Terms of service, Privacy policy.
- OpenAI bot IP ranges (OAI-SearchBot, ChatGPT-User), to tell the real bots from fakes. Downloaded once a day only when “Allow AI search engines and assistants” and “Verify AI search bots” are on, from https://openai.com/searchbot.json and https://openai.com/chatgpt-user.json. Provided by OpenAI: Terms of use, Privacy policy.
- Perplexity bot IP ranges (PerplexityBot, Perplexity-User), to tell the real bots from fakes. Downloaded once a day only when “Allow AI search engines and assistants” and “Verify AI search bots” are on, from https://www.perplexity.com/perplexitybot.json and https://www.perplexity.com/perplexity-user.json. Provided by Perplexity AI, Inc.: Terms of service, Privacy policy.
- Anthropic bot IP ranges (Claude-SearchBot, Claude-User), to tell the real bots from fakes. Downloaded once a day only when “Allow AI search engines and assistants” and “Verify AI search bots” are on, from https://claude.com/crawling/bots.json (3.10: plus Anthropic’s published outbound range 160.79.104.0/21, built in, nothing downloaded). Provided by Anthropic PBC: Terms of service, Privacy policy.
- DB-IP Lite country database, to apply the country rules. Downloaded once a month only when “Download the free country database” is on, from https://download.db-ip.com/free/dbip-country-lite-YYYY-MM.csv.gz (the current or the previous month). Lookups happen on your server. Licensed under CC BY 4.0 (“IP Geolocation by DB-IP”). Provided by db-ip.com: Terms of service, Privacy policy, License.
The five data center lists below are used only for the “Data center limit” (Bots and limits), a stricter page limit for visitors that come from cloud servers rather than from home or mobile connections. Each one is downloaded once a day only while protection is enabled and “Data center limit” is above 0 (set it to 0 to turn the lists off). They are JSON or CSV data files fetched by your server with wp_remote_get(); nothing from these hosts is ever loaded in your visitors’ browsers.
- Amazon Web Services IP ranges (only the EC2 servers are used), from https://ip-ranges.amazonaws.com/ip-ranges.json. Provided by Amazon Web Services, Inc.: Terms, Privacy policy.
- Google Cloud IP ranges, from https://www.gstatic.com/ipranges/cloud.json, the address where Google publishes the list. Provided by Google LLC: Terms of service, Privacy policy.
- Oracle Cloud IP ranges, from https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json. Provided by Oracle Corporation: Terms of use, Privacy policy.
- DigitalOcean IP ranges, from https://digitalocean.com/geo/google.csv. Provided by DigitalOcean, LLC: Terms of service, Privacy policy.
- Akamai Cloud (Linode) IP ranges, from https://geoip.linode.com/. Provided by Akamai Technologies, Inc.: Terms of service, Privacy policy.
Lockdown’s file check also compares WordPress and the plugins hosted on WordPress.org with their official checksums. This happens when you lock the site or press “Check now” on the Lockdown tab, and then at most once a day while the site stays locked, through the same WordPress.org services WordPress itself uses for updates. The requests contain the WordPress version and language (https://api.wordpress.org/core/checksums/1.0/) and, for each installed plugin, its slug and version (https://downloads.wordpress.org/plugin-checksums/SLUG/VERSION.json); no other data about your site, your content or your visitors is sent. Provided by WordPress.org: Privacy policy.
CrowdSec blocklist (3.7, off by default). Only when you turn it on, ScrapeLock downloads a list of IP addresses from the address you enter, with the key you enter, and checks visitors against it on your server. No data about your site’s visitors is sent; the request carries only your key (in the X-Api-Key header, or as HTTP Basic authentication) and the User-Agent “ScrapeLock/version”.
- Your own CrowdSec agent (LAPI), usually on the same server (for example http://127.0.0.1:8080): every 15 minutes, GET /v1/decisions/stream. The agent itself is CrowdSec software you install and run; whether it exchanges data with CrowdSec’s central service is set in the agent. CrowdSec is provided by CrowdSec SAS: Terms of use, Privacy policy.
- A blocklist address you choose, for example a CrowdSec Console blocklist integration (https://admin.api.crowdsec.net/…) or another provider’s plain-text list: downloaded once an hour. The provider is the one you choose; their terms and privacy policy apply.
Optional blocking at the CDN (off by default) uses the API of the CDN you choose, with your token. It sends only the IPs ScrapeLock blocks temporarily (IPv4, IPv6 or an IPv6 /64), each with the reason and end time, and removes them when the block ends. Saving the setting, or “Test connection”, checks the token and the zone; with Cloudflare it also adds a test block for a documentation address (203.0.113.x) and removes it again.
- Cloudflare API (IP Access rules of your zone), only when the CDN is set to Cloudflare: https://api.cloudflare.com/client/v4/zones/ZONE_ID/firewall/access_rules/rules, and for the check https://api.cloudflare.com/client/v4/user/tokens/verify (or /accounts/ACCOUNT_ID/tokens/verify) and /zones/ZONE_ID. Provided by Cloudflare, Inc.: Terms of service, Privacy policy.
- Bunny CDN API (blocked IPs of your Pull Zone), only when the CDN is set to Bunny CDN and, for the temporary blocks, “Send temporary blocks to the CDN” is on (3.9): https://api.bunny.net/pullzone/PULL_ZONE_ID (addBlockedIp, removeBlockedIp, and reading the zone’s list of blocked IPs). Provided by BunnyWay d.o.o. (bunny.net): Terms of service, Privacy policy.
Bunny CDN, deeper (3.8, off until you use it). With the Bunny CDN connection of “Blocking at the CDN” (or a pull zone ID and API key entered in the Bunny card), and your API key:
- Bunny CDN logging API (logging.bunnycdn.com) – only when “Import attacks from Bunny CDN’s logs” is on: every 15 minutes the site downloads the new lines of its own pull zone’s log, from https://logging.bunnycdn.com/DATE/PULL_ZONE_ID.log. Nothing about your visitors is sent; the log Bunny returns contains your visitors’ IPs, addresses asked for, referrers, User-Agents and countries. Only attack-looking lines are kept, unless Traffic collects (3.12): then every line is kept in your own database for the days you choose. Provided by BunnyWay d.o.o. (bunny.net): Terms of service, Privacy policy.
- Bunny CDN API (api.bunny.net) – when Bunny CDN is connected: reads the pull zone (https://api.bunny.net/pullzone/PULL_ZONE_ID: logging status, Edge Rules); when you click “Lock at Bunny” or “Turn on logging at Bunny” it creates, updates or deletes Edge Rules made by ScrapeLock (URL patterns, a description starting with “ScrapeLock:”, and for the login page the IPs administrators used in the last 30 days) or turns logging on. Same provider and terms as above.
Vulnerable points and Stealth (3.8) only request the site’s own pages and files, from the site itself (loopback), to check what a visitor gets. The weekly attack report and the sign-in protection’s emails go through the site’s own wp_mail().
If a list has not been downloaded, ScrapeLock verifies search engine bots with reverse DNS, and uses a built-in copy of the Cloudflare ranges. AI search bots are not verified until their list has been downloaded. Reverse DNS lookups are made only for requests that claim to be a search engine, through your server’s own DNS resolver.
If the official Cloudflare plugin is active, ScrapeLock asks it to purge its cache when you save the ScrapeLock settings. The request is made by the Cloudflare plugin, with the account you connected there; ScrapeLock itself does not contact Cloudflare for this and stores no Cloudflare credentials.
Schermafbeeldingen




















Installatie
- Upload the
scrapelockfolder to/wp-content/plugins/, or install the plugin from the Plugins screen. - Activate it. A new install runs in Monitor only for 7 days: watch the Log, then let it block.
- If your site is behind Cloudflare or another proxy, set “Real visitor IP” first (Bots and limits).
- Go to Settings ScrapeLock and choose a preset, or adjust each tab.
Upgrading from “Content Protect” (folder content-protect), the former name of this plugin: deactivate the old plugin, activate ScrapeLock. Your settings, tokens and log are kept. If you pasted the old Apache rules, replace the “# BEGIN Content Protect” block with the new “# BEGIN ScrapeLock” block.
FAQ
-
My server’s CPU spikes, often at night. Can ScrapeLock help?
-
Often, yes: the cause is usually a crawler reading thousands of pages. Open the Log: the 24-hour summary shows the top IPs, User-Agents and reasons. The bot list, the per-IP limits and the data center limit handle most of it; during an attack, start Emergency Mode.
-
GPTBot or Bytespider is eating my bandwidth.
-
They are on the bot list, which is on by default, and are refused with a 403 (in Monitor only they are just logged). robots.txt also asks them to stay away. A 403 costs your server far less than a full page.
-
Bots fill carts or try coupon codes.
-
With WooCommerce, ScrapeLock limits cart actions and coupon attempts per IP and blocks IPs that keep going. It is not a fraud or card-testing tool: use your payment provider’s fraud protection for that.
-
Will it block real visitors, shoppers or forms?
-
Verified search engines are never limited or blocked, there is no captcha, and the first 7 days are Monitor only. If someone is blocked, the Log shows why: unblock the IP under “IPs blocked now”, add it to “Always allowed IPs”, or press “Always allow this User-Agent”.
-
Will it block Google or Bing?
-
No. Verified search engines are never limited or blocked. Only fakes that pretend to be Googlebot or Bingbot are blocked.
-
Can I allow ChatGPT or Perplexity search but block training?
-
Yes. Turn on “Allow AI search engines and assistants” (Bots and limits). Training crawlers stay blocked. With “Verify AI search bots” on, only requests from the official addresses count as those bots; copies of the name get a 403. Turn the option off and ScrapeLock blocks them again from its own list, whether or not they are in your bot list.
-
Can it stop screenshots or screen recording?
-
No, and no plugin can: the screenshot is taken by the phone’s or the computer’s own system, and a web page is not even told about it. (A black screen happens only with DRM-protected video, and even then a photo of the screen works.) What ScrapeLock does instead: “Show who is reading over protected pages” puts the member’s user name and the time on every screenshot, recording and photo, and “Hide an invisible trace of the account in the text” marks copied text. Both are on the “On the page” tab, under Members and readers.
-
I can still right-click and copy. Is it working?
-
Probably: staff are exempt while logged in (“Who is excluded”, On the page tab). Test in a private window: only there do you see the copy protection as visitors see it (“Check a request” tests the server-side checks, not the browser scripts).
-
How do I test it?
-
“Check a request” (Log tab) shows what ScrapeLock would answer to GPTBot, a fake Googlebot, curl and more, without sending anything. Its “Check it yourself” lines test for real with curl from another computer. With WP-CLI:
wp scrapelock check --ip=<ip> --ua=<user-agent>. -
Does it work with page cache?
-
ScrapeLock tells WP Rocket not to serve cached pages to the bots in its list. Other page cache plugins serve stored pages before WordPress loads: turn on the pre-cache check (Bots and limits) to apply the bot list, the page limits and the blocks to them too. Site Health tells you when a page cache answers first. A cache in the web server (Nginx FastCGI cache, LiteSpeed, Varnish) answers before PHP: there use the “Server rules” tab or blocking at the CDN.
-
My site is behind Cloudflare. What should I set?
-
Set “Real visitor IP” to CF-Connecting-IP and keep “Trust Cloudflare addresses” on. When every visitor arrives from a Cloudflare address, ScrapeLock offers a button that does this. With Nginx, also set
real_ip_header CF-Connecting-IP;andset_real_ip_fromfor the Cloudflare ranges, so the server rules see the real IP. -
What personal data does it store?
-
For a blocked request: the IP, User-Agent, page and time, deleted after 1, 7 or 30 days (over a per-account limit, also the username). The attack record keeps the IP, the address asked for, the hour and, for a failed sign-in, the username tried, for 7 to 90 days. The optional features keep only hashes or a signed expiry. No visitor data is sent anywhere by default. The full list is in the user guide.
-
I lost my phone. How do I unlock the site?
-
Type a recovery code instead of an app code. With none left, add
define( 'SCRAPELOCK_UNLOCK', true );to wp-config.php, connect a new app on the Lockdown page, then remove the line. This also helps if you forget a staff password while locked. -
Where are the other answers?
-
CDN setups (Cloudflare, Bunny CDN), the server rules and aaPanel, the pre-cache and early checks, Stealth, Lockdown, WP-CLI, the filters for developers and more: see the user guide.
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“ScrapeLock – Content & AI Bot Protection” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “ScrapeLock – Content & AI Bot Protection” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
3.12.13
- Plugin Check: 0 errors and 0 warnings.
wp scrapelock rules installruns the server’s test and reload commands through WP-CLI’s own runner instead of starting a process itself; the traffic and report queries pass every value through prepared statements; the translations load without load_plugin_textdomain() (a language pack still comes first, also on WordPress 6.2 to 6.6); temporary file names use PHP’s random_bytes(); the readme is shorter, with the full feature list and the other answers in the user guide and the older changes in changelog.txt. - Nothing changes for visitors or in the settings, and the server rules stay the same.
3.12.12
- Fix: after “Upload Plugin”, the “Activate Plugin” button of 3.12.11 pointed at the Lockdown guard file (includes/lockdown-guard.php) instead of scrapelock.php, and activating ended in “The plugin does not have a valid header.” The guard file now sits where WordPress does not look for plugins (includes/lockdown/guard.php). Activating from the Plugins list or with WP-CLI was not affected. A guard already in mu-plugins is refreshed on the update.
3.12.11
- Fix: host malware scanners (for example SiteGround’s Site Scanner) flagged ScrapeLock’s files and could quarantine them. ScrapeLock no longer writes any PHP file while the site runs: the check of “PHP in the uploads folder” asks the server for an address that does not exist instead of writing a test file there, and the temporary copies of wp-config.php and of the early check are no longer .php files. The lines in wp-config.php and the early check’s file in mu-plugins are plain, commented loaders of the plugin’s own files.
- Lockdown: the guard in mu-plugins is now a fixed file shipped with the plugin (the same on every site), and Lockdown keeps its data in JSON files, with the copy of the protected settings encrypted. Sites on 3.12.10 are converted automatically on the update; a locked site stays locked.
- The lists of attack patterns (web shell names, injection patterns, probe addresses) no longer read as malware to these scanners, and match exactly the same requests as before. With “Block technology profilers” on, the server rules and the pre-cache check’s data no longer spell out a security company’s name that scanners take for a phishing kit (the same bots are blocked); if you copied ScrapeLock’s server rules by hand, the Server rules tab tells you when to copy them again.
- A visitor’s request is unchanged: with APCu or Redis still no file access and no query of ScrapeLock.
3.12.10
- Fix: when WP-CLI ran as root (
--allow-root) and a change turned on the pre-cache check or the early check, ScrapeLock rewrote wp-config.php (new file, then rename) as root:root with root’s mode; PHP-FPM could no longer read it (“Failed opening required wp-config.php”) and the site went down. Every file ScrapeLock rewrites now keeps its owner, group and permissions (wp-config.php, the mu-plugin, .htaccess, the Seal and Lockdown files, the server rules), and a file or folder it creates as root (mu-plugins/scrapelock-early.php, uploads/scrapelock/*, logs, caches) is given to the owner of the WordPress folder (0644 files, 0755 folders). The pre-cache check’s cleanup, run as root, also hands back the data files 3.12.9 left to root. - WP-CLI: a warning when it runs as root, before every
wp scrapelockcommand andwp option update pncp_*/wp plugin deactivate scrapelock(not with –quiet or a machine-readable –format), naming the user to run it as (sudo -u <user> wp …). - A visitor’s request is unchanged: with APCu or Redis still no file access and no query of ScrapeLock.
The changes of 3.12.9 and earlier versions are in changelog.txt in the plugin folder.
