SecureImpulse Documentation

Website Security Hardening & Reference Guides

Practical engineering guides on configuring HTTPS, security headers (CSP, HSTS), secure cookies, DNSSEC, CAA, SPF, DKIM, DMARC, and security.txt.

Transport Layer

Deploying HSTS & TLS 1.3 Safely

Always ensure every subdomain supports HTTPS before enabling includeSubDomains or submitting your domain to the HSTS preload list. Start with a staging max-age=86400, verify no legacy HTTP dependencies remain, and then increase to max-age=31536000; includeSubDomains; preload.

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Test with HTTP Header Inspector →
Browser Defense

Eliminating 'unsafe-inline' in Content-Security-Policy

A Content-Security-Policy that includes script-src 'unsafe-inline' allows injected XSS scripts to execute freely. Replace inline scripts with external JavaScript bundles served from 'self' or generate per-request cryptographic nonces ('nonce-...').

Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'
Scan Your CSP Configuration →
Email Anti-Spoofing

Moving DMARC from Monitoring (p=none) to Enforcement (p=reject)

Publishing v=DMARC1; p=none collects aggregate XML reports without blocking spoofed phishing messages. After auditing your legitimate mail senders in SPF and signing outbound messages with 2048-bit DKIM keys, transition to p=quarantine and then p=reject; pct=100.

_dmarc.example.com. IN TXT "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:dmarc@example.com"
Run Email Security Checker →
DNS Integrity

Restricting Certificate Authorities with CAA Records

By default, any publicly trusted Certificate Authority can issue a TLS certificate for your domain if domain control validation passes. CAA records (RFC 8659) bind your domain to only the specific CAs you authorize.

example.com. IN CAA 0 issue "letsencrypt.org"
example.com. IN CAA 0 issuewild ";"
example.com. IN CAA 0 iodef "mailto:security@example.com"
Inspect CAA Records via DoH →