PIIP – PII Protection
Automatically detects and masks PII in WordPress comments and forms to protect user privacy and support your GDPR compliance efforts.
Use with caution
PIIP – PII Protection works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (<10 active installs)
- Very few reviews so far
- Needs PHP 8.2 or newer
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where PIIP – PII Protection stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| data protection | >100 |
| GDPR | >100 |
| PII | #26 |
| privacy | >100 |
| security | >100 |
About PIIP – PII Protection
From the official readme · v1.8.0Description
PIIP (PII Protection) is a plugin that automatically detects and masks personally identifiable information (PII) in WordPress comments and community plugin content before the data is saved to your database. This helps protect user privacy and supports your compliance efforts under privacy regulations such as the GDPR. Note that PIIP is a technical tool and does not by itself make your site GDPR compliant.
Key Features
- Automatic PII Detection: Intelligently detects multiple types of PII including emails, phone numbers, addresses, credit cards, SSN/My Number, passwords, API tokens, IP addresses, and hosting account IDs
- Server-Side Masking: All masking happens on the server (PHP) for maximum security – cannot be bypassed by users
- WordPress Core Support: Native support for WordPress comments – from the comment form, the REST API (including block editor notes) and later edits – with per-type selection (comments, product reviews, notes, other types)
- Commenter IP Anonymization: Optionally store commenter IP addresses anonymized (192.0.2.123 → 192.0.2.0), the same way WordPress anonymizes them for personal data erasure
- Inquiry-Style Text Protection: Catches contact details posted to a forum by mistake instead of a contact form – labeled names, furigana, addresses, phone numbers, member/login IDs, card expiry dates and security codes (お名前:… / 住所:… / Name: … / Address: …)
- Full-Width Aware: Full-width digits and symbols typed with a Japanese IME (090-1234-5678, taro@example.jp) are detected; text outside masked parts keeps its original width
- Image Location Removal: GPS coordinates and author/device identifiers are removed from uploaded photos (JPEG, WebP, PNG, HEIC/AVIF) without re-encoding – WordPress otherwise keeps them in the original upload and, with ImageMagick, in every resized copy
- Abilities API:
piip/mask-textandpiip/scan-contentabilities let MCP clients and AI agents mask text and audit stored content without ever receiving raw PII - Community Plugin Support: Works seamlessly with wpForo, BuddyPress, bbPress, and other popular community plugins
- Configurable: Choose which PII types to mask via easy-to-use settings page
- Consent Opt-Out: Users can include consent phrases to skip masking when sharing personal info publicly
- Presidio-Level Detection: High-accuracy detection with validation (Luhn for credit cards, check digits for My Number)
- Retroactive Scan: Scan content that existed before installing PIIP and apply masking after a dry-run review
- Custom Patterns: Mask site-specific identifiers (employee IDs, member numbers) with your own regular expressions
- WP-CLI Support:
wp piip maskandwp piip scancommands for automation and large sites
Supported PII Types
- Email addresses (example@domain.com → e***@domain.com)
- Phone numbers (Japanese mobile/landline, parenthesized 03(1234)5678, toll-free/navi dial 0120/0570, international, US formats)
- Japanese street addresses in free text (東京都新宿区西新宿2-8-1 → 東京都) and labeled postal codes (〒123-4567 → 〒-****)
- Credit card numbers with Luhn validation (4532-1234-5678-9014 → ****-****-****-9014)
- Social Security Numbers / Japanese My Number with check digit validation
- Passwords, including labeled values in free text (password: xxx / パスワードは xxx / PW: xxx → [REDACTED]) and pasted configuration (define( ‘DB_PASSWORD’, ‘…’ ), SMTP_PASSWORD=…, aws_secret_access_key = …)
- HTTP credentials: Basic auth (curl -u, Authorization: Basic, user:pass@host URLs) and Bearer tokens (including JWTs)
- Developer secrets: GitHub, GitLab, Slack (tokens and webhooks), Discord webhooks, AWS, Stripe, Google OAuth, SendGrid, npm, Twilio, Mailgun, Shopify, Telegram, DigitalOcean tokens and SSH/PEM private key blocks
- API Tokens/Keys (partial masking showing first and last 4 characters)
- AI API Keys (OpenAI sk-***, Anthropic sk-ant-***, Google AIza***, Hugging Face hf_***, Replicate r8_***, Cohere, Azure OpenAI)
- Labeled dates of birth (生年月日: 1990-01-15 → ****-–)
- Labeled bank account numbers (口座番号: 1234567 → ***4567)
- Labeled contact details in inquiry-style text: name, furigana, address, phone, member/login ID, card expiry and security code (お名前:山田 太郎 → お名前:山* 太*)
- Labeled ID document numbers: passport, driver’s license, health insurance, basic pension, residence card
- Japanese addresses written without the prefecture, for designated cities and Tokyo’s 23 wards (横浜市中区山下町1-2-3 → 横浜市***)
- Names in self-introduction phrases (山田太郎と申します → 山***と申します; opt-in, off by default)
- IP Addresses: IPv4 (192.168.1.1 → 192...1) and IPv6, including compressed forms (2001:db8::8a2e:370:7334 → 2001:db8:***)
- Hosting Account IDs (XServer, Sakura, AWS, Azure, GCP, ConoHa, Lolipop, mixhost)
Supported Integrations
- WordPress Core
- Comments (comment form, REST API, edits; selectable types: comments, product reviews, block editor notes, other types)
- Commenter IP addresses (optional anonymization)
- User Profiles (display name, nickname, biographical info)
- Form Plugins
- Contact Form 7 (free-text fields; protects sent mail and stored copies such as Flamingo)
- Community Plugins
- wpForo Forum
- BuddyPress
- bbPress
- More integrations coming soon!
How It Works
- User posts a comment or content in a community plugin
- PIIP intercepts the submission before database save
- Automatically detects PII using field names, regex patterns, and validation
- Masks detected PII according to your settings
- Content saves normally with masked data
Privacy & Security
- All processing happens on YOUR server (no external API calls)
- Original values are NEVER stored for maximum privacy protection
- Server-side processing prevents client-side bypass attempts
- Full control over your data
Privacy Policy
PIIP – PII Protection does NOT:
* Send any data to external servers
* Track users
* Use cookies
* Share data with third parties
PIIP DOES:
* Process content locally on your server
* Automatically mask PII without storing sensitive data
* Optionally anonymize the IP addresses stored with comments
Support
For support, bug reports, or feature requests:
* Website: https://github.com/benridane/piip
Development
Development happens on GitHub. Pull requests welcome!
* Follow coding standards
* All code must pass composer run phpcs
Installation
Automatic Installation
- Log in to your admin panel
- Go to Plugins → Add New
- Search for “PIIP” or “PII Protection”
- Click “Install Now” and then “Activate”
- Go to Settings → PII Protection to configure
Manual Installation
- Download the plugin ZIP file
- Upload to
/wp-content/plugins/piipdirectory - Activate the plugin through the ‘Plugins’ menu
- Go to Settings → PII Protection to configure
After Activation
- Navigate to Settings → PII Protection
- Enable/disable desired integrations (Comments, wpForo, BuddyPress, bbPress)
- Select which PII types to mask
- Configure consent phrases for opt-out feature
- Save settings
- Test with a post or comment to verify masking is working
Changelog
Uploaded photos lose their GPS location and author/device IDs (on by default, no re-encoding). Use Tools > PII Scan > Images to clean images uploaded earlier.
1.8.0 – 2026-10-03
- New: Location and identifying metadata are removed from uploaded images (JPEG, WebP, PNG, HEIC/AVIF): GPS coordinates in EXIF and XMP, XMP location fields, and (optionally) author, owner name and camera/lens serial numbers. Files are edited in place without re-encoding; orientation, color profile, camera model and date are kept. Both options are on by default (Settings → PII Protection → Uploaded Images)
- New: The EXIF author (“credit”) is no longer stored in media data exposed by the REST API
- New: “Images” target for the PII scan (Tools → PII Scan,
wp piip scan --target=images, and the piip/scan-content ability) to find and clean images uploaded earlier - New:
piip_scrub_image,piip_image_scrubbedandpiip_image_scrub_max_sizehooks - Fixed: The card number example in the readme was not a valid (Luhn) number
1.7.0 – 2026-09-28
- New: Choose which comment types are masked – comments, product reviews, block editor notes, and other types (pingbacks, trackbacks, custom types). Notes are off by default
- New: Optional anonymization of commenter IP addresses (Settings → PII Protection → Commenter IP addresses)
- New: Abilities API support –
piip/mask-textandpiip/scan-contentabilities for MCP clients and AI agents; results never include raw PII - New:
piip_mask_comment_typefilter to decide per comment type whether a comment is masked - New: Inquiry-style text protection (new PII type “Labeled contact details”, on by default) – labeled names, furigana, addresses, phones, member/login IDs, card expiry and security codes, as posted when a forum is mistaken for a contact form
- New: Labeled ID document numbers (new PII type, on by default) – passport, driver’s license, health insurance, basic pension and residence card numbers
- New: Full-width digits and symbols are detected (090-1234-5678, taro@example.jp); text outside masked parts keeps its original width
- New: More phone formats – 03(1234)5678, 090(1234)5678, 0570/0990 numbers, US 1-800-555-0199
- New: Amex (4-6-5) and Diners (4-6-4) card groupings
- New: More password labels (PW, P/W, PIN, passcode, ログインパス) and pasted configuration secrets (define( ‘DB_PASSWORD’, … ), *_PASSWORD=, *_SECRET=, *_TOKEN=, api_key=)
- New: More service tokens – Google OAuth, Stripe test/restricted/webhook secrets, SendGrid, npm, GitLab, Twilio, Mailgun, Shopify, Telegram, DigitalOcean, Slack and Discord webhook URLs
- New: Japanese addresses without the prefecture for designated cities and Tokyo’s 23 wards
- New:
piip_text_rulesfilter to add or change free-text detection rules - Changed: Detection and masking now share one set of rules, so the preview, the PII scan and the Abilities API report exactly what masking handles
- New: IPv6 addresses in text are masked, including compressed forms (2001:db8::1 → 2001:db8:***)
- Security: Fixed a stored XSS where a private key block spanning HTML markup could rewrite tag attributes in integrations that mask after HTML sanitization (e.g. BuddyPress activity). Private key matching is now limited to the PEM alphabet, and any masking result that would change the HTML markup falls back to masking text and attribute values separately
- Security: Custom pattern replacements can no longer contain < > ” ‘ ` (removed on save and at runtime for existing patterns)
- Fixed: Credit card numbers in text are masked only when they pass the Luhn checksum, so order numbers, JAN codes and other long IDs are no longer masked; fields named as card fields are still masked regardless
- Fixed: BuddyPress activity links were broken for user names that look like hosting IDs (e.g. abc12345); the generated activity action is no longer masked, and activity content is masked once instead of twice
- Fixed: Exact field names now take precedence over partial matches (e.g. remote_addr is treated as an IP address, not a postal address)
- Fixed: Comments created through the REST API (headless front ends, apps, block editor notes) were saved without masking
- Fixed: Edited comments were saved without masking; only changed fields are masked, so moderation never rewrites older text
- Fixed: Removing every consent phrase and saving silently re-enabled the default phrases for real submissions, while the preview showed masking
- Fixed: Consent phrase defaults were different between the settings screen, activation and runtime; they now share one list, and matching is case-insensitive for multibyte text
- Fixed: Adding a consent phrase or custom pattern after removing a row could overwrite another row on save
- Fixed: The error shown for a rejected custom pattern now escapes the pattern
- Tested up to WordPress 7.1
1.6.0 – 2026-07-05
- New: Japanese street addresses are now detected and masked in free text (prefecture + municipality + block number required, so mere place mentions are untouched); labeled postal codes (〒 / 郵便番号) are masked too
- New: Labeled passwords in free text (password: xxx / パスワードは xxx) are masked to [REDACTED]
- New: HTTP Basic auth credentials are masked – curl -u user:pass, Authorization: Basic headers, and user:pass@host URLs (password only)
- New: Bearer tokens (including JWTs) are masked
- New: Developer secrets are masked – GitHub, Slack, AWS, Stripe tokens, bare JWTs, and whole SSH/PEM private key blocks
- New: Labeled dates of birth (生年月日/誕生日/birth date) and labeled bank account numbers (口座番号, 普通/当座) are masked; both can be disabled in settings
- New: Opt-in masking of names in self-introduction phrases (〜と申します, 名前: 〜); off by default, enable “Names (self-introduction phrases)” in settings
- Changed: Tokens shorter than 32 characters are now partially masked instead of passing through unmasked
- Changed: IP address and hosting ID masking can now be toggled in settings (previously always on); the internal mask_hosting_id setting key was migrated to mask_hosting
- Fixed: The masking preview now uses the exact same per-type enablement rules as real submissions
1.5.0 – 2026-07-05
- New: PII Scan tool (Tools → PII Scan) – scan existing comments and posts for PII with a dry-run report, then apply masking retroactively
- New: Contact Form 7 integration – masks free-text (message) fields in submissions, protecting both the sent mail and stored copies (e.g. Flamingo); name/email fields are kept for replies
- New: User Profiles integration – masks PII written into publicly visible profile fields (display name, nickname, biographical info)
- New: Custom patterns – define your own regex patterns and replacements in the settings for site-specific identifiers (employee IDs, member numbers, etc.)
- New: WP-CLI commands –
wp piip maskandwp piip scan --applyfor large sites and CI - Fixed: Enabled integrations (e.g. Comments) were inactive until the settings were saved once, due to a settings key mismatch in the activation defaults
- Fixed: Ordinary words were reported as GCP hosting IDs in the preview/scan detection breakdown, flagging almost every text as containing PII
1.4.1 – 2026-07-02
- New: Masking Preview tool on the settings page – type sample text and see the masked result in real time
- New: Field name + value preview mode for testing field-based detection (e.g. password fields)
- New: Detected PII breakdown with type, confidence score, and actual masking status
- New: Consent phrase bypass indication in the preview
- Fixed: Japanese toll-free numbers (0120-xxx-xxx, 0800-xxx-xxxx) were detected but not masked in free text content
1.4.0 – 2026-02-07
- New Feature: AI API Key Detection and Masking
- Added: Support for 10 AI service providers (OpenAI, Anthropic Claude, Google AI, Hugging Face, Replicate, Cohere, Azure OpenAI, and more)
- Added: Automatic detection of AI API keys in comments and form submissions
- Added: Pattern-based detection for sk-, sk-proj-, sk-ant-, AIza, hf_, r8_ prefixed keys
- Enhanced: Token masking now includes AI-specific key patterns
- Enhanced: Comment integration now masks AI API keys in text content
- Security: Prevents accidental exposure of AI API credentials in public content
- Tested: 100% test coverage with 35 test cases across 3 test suites
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best PIIP – PII Protection alternatives
All data protection plugins →FAQ
PIIP – PII Protection: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is PIIP – PII Protection free?
Yes. PIIP – PII Protection is free to download and use from the official WordPress.org plugin directory.
Is PIIP – PII Protection safe to use in 2026?
PIIP – PII Protection works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
How many websites use PIIP – PII Protection?
PIIP – PII Protection is active on <10 WordPress websites and has been downloaded 989 times since it launched in December 2025. It was downloaded 127 times in the last 30 days.
Does PIIP – PII Protection work with WordPress 7.1?
Yes. The developer has tested PIIP – PII Protection up to WordPress 7.1.5, the latest release. It requires WordPress 6.9 or newer.
What PHP version does PIIP – PII Protection need?
PIIP – PII Protection requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was PIIP – PII Protection last updated?
The latest version, 1.8.0, was released on October 3, 2026 (2 months ago).
Who makes PIIP – PII Protection?
PIIP – PII Protection is developed and maintained by miya.
What are the best alternatives to PIIP – PII Protection?
The most popular alternatives to PIIP – PII Protection are Gravity Forms Data Purge (50+ installs), DPDPA Compliance India (10+ installs) and WP-HR GDPR: GDPR Tools for… (10+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
