Web / Security
HTTP Header Generator
Create example headers for web security, caching and Content-Type. The generator produces ready-to-copy examples for Apache, Nginx and PHP and highlights common configuration issues.
Configure headers
Choose an output format and a profile first. Then enable individual headers, adjust values and copy the generated code. The output is a template and should be tested on the target server before production use.
Generator
All input stays local in your browser. No data is sent to a server.
Output
Adjust the fields. The output is generated automatically.
Implementation notes
Test templates first
Security headers can block external scripts, images, frames or APIs. Test the output in a staging environment first and check the browser console, login, forms, payments, embeds and ad delivery.
A Content Security Policy can be very effective, but it has to match the page. HSTS should only be used when HTTPS is permanently configured correctly. Caching rules should distinguish between HTML pages, API responses and versioned assets.