Content Security Policy Builder
Network & Ops · Free Online Tool
Visually compose CSP header directives.
Fallback for other resource types.
JavaScript sources.
Stylesheet sources.
Image sources.
Font sources.
Fetch, WebSocket, EventSource targets.
Audio/video sources.
Plugin objects (e.g. Flash).
iframe / frame sources.
Allowed <base> URIs.
Allowed form submission targets.
Parents that may embed this page (anti-clickjacking).
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';
All Directives
Includes default-src, script-src, frame-ancestors, and more.
Live Preview
Header updates as you type — leave a field empty to omit the directive.
Copy or Download
Export the header to clipboard or as a text file for your server config.
How to Use Content Security Policy Builder
- 1Enter the URL, IP address, or network parameter to look up.
- 2Click the lookup or test button.
- 3Review the detailed results in the output panel.
- 4Use the information for your network operations.
Features
- ✓100% free — no signup, no subscription, no ads
- ✓Runs entirely in your browser — data never leaves your device
- ✓Fast and lightweight — instant results
- ✓Cross-platform — works on desktop, tablet, and mobile
Frequently Asked Questions
Are network lookups real-time?
Yes, IP lookups, DNS queries, and HTTP tests perform live network requests to provide current data.
Is my IP address logged?
The IP Lookup tool queries public geolocation APIs. We do not store your IP address or lookup history.
Why do geolocation results differ between providers?
Each provider maintains its own IP-to-location database with different update cycles and coverage. Treat any single result as an approximation, not an exact address.
Do the results reflect me if I use a proxy or VPN?
No. Results show the egress IP of the proxy or VPN you are connected through. Disconnect it if you need your real public IP.
Related Tools
CORS Rule Builder
Generate CORS response headers (Access-Control-*).
Robots.txt Generator
Generate robots.txt rules for a site.
Sitemap XML Generator
Generate sitemap.xml from a URL list.
.htaccess Generator
Generate redirect/cache/auth .htaccess rules.
Nginx Config Generator
Generate reverse proxy/static site Nginx configs.
Docker Compose Generator
Visually generate docker-compose.yml.
Dockerfile Generator
Generate Dockerfile templates by language/runtime.
.gitignore Generator
Generate .gitignore templates by language/IDE selection.