Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 562 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 562 Bytes

CSP Reporter

A simple PHP CSP reporter script that saves violations to disk.

Usage

Put the csp-reporter.php on your web server, or in your local directory were you have your website PHP files, and specify csp-reporter.php in your CSP report-uri directive (ref. 7.13).

Note: CSPv3 is still in its draft, therefore, CSPv2 will continue to work and there will most likely be backward compatibility.

Output "csp-violations.log"