MyIPv6Address

Network tools / Web & Security

CSP & Security Headers Generator

Build a Content-Security-Policy and the other recommended security headers, with Apache and Nginx snippets.

HTTP headers


  
  

Apache (.htaccess)


  

Nginx


  

Start in report-only mode (Content-Security-Policy-Report-Only) on a real site, check the browser console, then enforce. Inline scripts and styles are blocked unless you add nonces, hashes or 'unsafe-inline'.