Might as well make a reusable Handler to cover most of these. https://wiki.mozilla.org/Security/Guidelines/Web_Security