Security headers are short instructions your server sends with every page. They tell browsers to block common attacks: clickjacking, injected scripts, and downgrades to insecure HTTP. They cost nothing and take a few minutes to add.
A good starting set (Apache, LiteSpeed, most cPanel hosts)
Add this to the .htaccess file in your site's folder:
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
</IfModule>
Only add Strict-Transport-Security once HTTPS works on every page and subdomain you use; browsers will refuse plain HTTP for a year. On nginx, use add_header ... always; lines instead.
Content Security Policy (CSP)
A CSP lists where scripts, styles and images may load from, so injected code doesn't run. It is the strongest protection, but it needs tuning for each site. Start in report-only mode, which blocks nothing:
Header always set Content-Security-Policy-Report-Only "default-src 'self'; img-src 'self' https: data:; script-src 'self' https:; style-src 'self' 'unsafe-inline' https:"
Open your site with the browser's developer console and look for CSP messages. Adjust the policy until it's quiet, then rename the header to Content-Security-Policy.
Secure session cookies
Login and session cookies should be marked Secure (only sent over HTTPS) and HttpOnly (scripts can't read them). For PHP sites, set these in cPanel → MultiPHP INI Editor: session.cookie_secure = On and session.cookie_httponly = On. WordPress sets them correctly when the site runs on HTTPS.
Hide version numbers
Version numbers in the Server and X-Powered-By headers help attackers choose an exploit. Turn off expose_php in the MultiPHP INI Editor. On your own server, set ServerTokens Prod (Apache) or server_tokens off; (nginx).
Still stuck? Customers can open a support request from their account. Otherwise, use the contact form.