Posts

Showing posts from June, 2022

Apache header directives for security

This is a list of header directives for to increment security site. You have two ways for set this security header, from .htacess or from your web server. Example using ".htaccess"  <IfModule mod_headers.c>      Header set X-Frame-Options "DENY"  </IfModule>   You can set using "Header set" followed by header policy.  This is a list from more commons.   Content-Security-Policy Examples 1  <IfModule mod_headers.c>     Header set Content-Security-Policy "default-src 'self' style-src 'self' 'unsafe-inline' fonts.googleapis.com script-src 'self' font-src 'self' fonts.gstatic.com "  </IfModule>   You can find a complete documentation on this link:  Directives for bootstrap  https://content-security-policy.com/examples/google-fonts/ https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy  Strict Transp...