WordPress plugin intelligence profile

CSP Violation Reporter

Collect and inspect Content Security Policy (CSP) reports with filtering, grouping, rate limits and automatic cleanup.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version0.2.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.5 · PHP 7.4
Directory statusactive
Last directory update3 Oct 202629d ago
Active installations20Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records CSP Violation Reporter version 0.2.0 as active, updated 29d ago and tested up to WordPress 7.1.

Overview

About this plugin

CSP Violation Reporter helps site administrators investigate Content Security Policy violations. It receives browser reports through a public WordPress REST endpoint, stores them in the site’s own database, and provides a searchable administrative dashboard.

Reports can be reviewed from Tools > CSP Violations. The plugin supports the modern Reporting API payload format as well as the older csp-report JSON shape.

  • Review violations by directive, blocked resource, document URL, disposition and date.
  • Group noisy resources and count repeated occurrences without storing an extra row for every identical report.
  • Inspect safely escaped raw JSON, source locations, referrers and first/last-seen timestamps.
  • Configure rate limits, retention and the maximum number of stored records.
  • Receive same-origin iframe reports and automatically upgrade the database schema without reactivation.

Filter by directive, disposition, URL and date range, or group violations by resource. Repeated violations with the same document, blocked resource, directive, policy and source location share one record with an occurrence count. Each record includes first/last-seen timestamps and the latest raw JSON report.

Protection is enabled by default:

  • Accepts document URLs only from the origins configured in this site’s WordPress Address and Site Address. Redacted iframe reports require a local referrer.
  • Limits intake to 100 reports per minute per connecting address and 1,000 reports per minute for the site.
  • Limits request bodies to 64 KiB, individual normalized reports to 16 KiB and batches to 50 entries.
  • Removes inactive reports after 30 days and retains at most 10,000 records, keeping the most recently seen.

Retention and quotas can be adjusted in Tools > CSP Violations > Settings. Existing reports are preserved during schema upgrades; retention rules also apply to pre-upgrade reports.

Endpoint:

/wp-json/csp-violation-reporter/v1/report

The plugin does not create or modify Content Security Policy headers. Site owners should configure CSP headers in their web server, hosting dashboard, theme, or security tooling.

Example report endpoint configuration:

com/wp-json/csp-violation-reporter/v1/report

For the modern Reporting API, use an HTTPS endpoint:

com/wp-json/csp-violation-reporter/v1/report"

Content-Security-Policy: default-src 'self'; report-to csp-endpoint

Privacy

This plugin stores CSP violation reports submitted by browsers. Stored fields can include the document URL, referrer URL, blocked URI, violated directive, source file, line and column numbers, a user agent string, a salted hash of the remote address, and the raw report payload.

Short-lived rate-limit records contain a salted address hash and counters. Raw JSON can contain URL query parameters and other information supplied by the browser. Administrators should set retention to suit their site’s privacy policy.

Reports expire by last-seen time and can also be cleared manually. Uninstalling removes the plugin’s report tables, protection settings and scheduled cleanup events.

The plugin does not store raw IP addresses and does not transmit report data to external services.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • content security policy
  • csp
  • reporting
  • reports
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.5 · PHP 7.4
Update activity3 Oct 202629d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version0.1.10.2.0
WordPress compatibility7.0.47.1.2
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.