Expand description
Modules§
- csp
- Apply
Content-Security-Policy
headers.
Enums§
- Frame
Options - Set the frameguard level.
- Referrer
Options - Set the Referrer-Policy level
Functions§
- armor
- Apply all protections.
- dns_
prefetch_ control - Disable browsers’ DNS prefetching by setting the
X-DNS-Prefetch-Control
header. - dont_
sniff_ mimetype - Prevent browsers from trying to guess (“sniff”) the MIME type, which can have security implications.
- frameguard
- Mitigates clickjacking attacks by setting the
X-Frame-Options
header. - hide_
powered_ by - Removes the
X-Powered-By
header to make it slightly harder for attackers to see what potentially-vulnerable technology powers your site. - hsts
- Sets the
Strict-Transport-Security
header to keep your users onHTTPS
. - referrer_
policy - Mitigates referrer leakage by controlling the referer[sic] header in links away from pages
- xss_
filter - Sets the
X-XSS-Protection
header to prevent reflected XSS attacks.