Your site can be locked-down to some degree by implementing some HTTP headers on your website, providing directives to your site visitor’s web browser.

These directives can help prevent XSS Vulnerabilities.

We won’t go into detail here about implementing each feature, but here is a list of resources you can use to check over your website.


For a rather comprehensive analysis, use the Mozilla Observatory to analyze your site.

https://observatory.mozilla.org/

Be sure to check their Third-Party Scans list.


Look into implementing HSTS Preloading and register.

https://hstspreload.org/


Some other sites to check the status of your security-related HTTP Headers, perhaps providing additional information to consider.

https://securityheaders.com/

https://sitecheck.sucuri.net/