Skip to main content
Protect sensitive user data and ensure compliance with privacy regulations like GDPR, CCPA, and HIPAA using PromptGuard’s advanced PII detection and redaction capabilities.

Data Privacy Overview

Data privacy is critical for AI applications that handle personal information. PromptGuard provides comprehensive protection for:

Personal Identifiable Information (PII)

  • Contact Information: Email addresses, phone numbers, addresses
  • Government IDs: Social Security Numbers, passport numbers, driver’s licenses
  • Financial Data: Credit card numbers, bank accounts, routing numbers
  • Health Information: Medical record numbers, health conditions
  • Technical Identifiers: IP addresses, device IDs, session tokens

Sensitive Data Categories

  • Biometric Data: Fingerprints, facial recognition data
  • Location Data: GPS coordinates, precise locations
  • Behavioral Data: Browsing patterns, user preferences
  • Communication Data: Email content, chat messages
  • Professional Data: Employee IDs, salary information

PII Detection and Redaction

Automatic PII Detection

PromptGuard automatically detects and handles common PII patterns: PII detection and redaction run automatically on every guard and proxy call, according to your project’s policy. Which entity types are detected (email, phone, SSN, credit card, and 35+ more) and whether each is redacted, masked, or blocked are policy settings, configured in the dashboard under Projects > [Your Project] > Security Rules. To see it in action, send content containing PII to the guard endpoint:
When your policy is set to redact, the response includes the cleaned messages:

Custom PII Patterns

Custom patterns (employee IDs, medical record numbers, internal ticket formats, etc.) are configured in the dashboard policy editor: log in to app.promptguard.co, open your project, go to Security Rules, and click Create Policy. For each pattern, you define:
  • Name — a label such as employee_id or medical_record
  • Pattern — a regular expression, e.g. EMP-\d{6} or MRN-\d{8}
  • Actionredact, block, or flag
  • Replacement — the placeholder used when redacting, e.g. [EMPLOYEE_ID]
Once saved, custom patterns are enforced automatically on every guard and proxy call, alongside the built-in PII detectors. See Custom Security Rules for all policy types and rule conditions. You can confirm your active policies from code with the read-only endpoint:

Implementation Examples

Healthcare Data Protection (HIPAA)

GDPR-Compliant Data Processing

Privacy-by-Design Implementation

Data Anonymization

Privacy Compliance Framework

Privacy Testing and Validation

PII Detection Testing

Next Steps

Enterprise Setup

Configure PromptGuard for enterprise environments

Content Moderation

Implement comprehensive content filtering

Chatbot Protection

Secure conversational AI applications

Security Overview

Complete security configuration guide
Need help implementing privacy protection? Contact our team for assistance with privacy compliance and data protection strategies.