Skip to main content

Security settings for your domain

Force HTTPS (HSTS) and control iframe embedding for your custom domain, without writing HTTP headers yourself.

B
Written by Bård Hovde

Vev lets you turn on two common browser security protections for your custom domain, without writing HTTP headers yourself. Security reviews and vulnerability scanners often flag these when they're missing.

Note: Security settings are only available for Standard Hosting, and the domain must be fully set up with DNS and a valid SSL certificate.

How to change security settings

  1. Navigate to Hosting under account settings.

  2. Select the hosting you want to change.

  3. Go to Security in the left side menu.

  4. Choose an option for Force HTTPS (HSTS) and Embedding in iframes.

  5. Click "Save".

Changes are live on your domain within about a minute.

Force HTTPS (HSTS)

Vev already redirects visitors from HTTP to HTTPS. HSTS (HTTP Strict Transport Security) goes one step further: it tells browsers to only ever load your domain over HTTPS for a set period, so they never make an insecure request at all. This protects visitors on untrusted networks, such as public Wi-Fi.

Options: Off, 1 week, 6 months, 1 year (recommended) and 2 years.

Things to know before you turn it on:

  • Browsers remember it for the whole period. If you turn it off or shorten it later, visitors who already received it keep the old setting until their period runs out.

  • Plan ahead if you move your domain. If you move the domain to a host without HTTPS, returning visitors can't reach it until the period runs out. Turn HSTS off well before moving.

  • It only applies to this domain. Your other domains and subdomains are not affected.

  • Not sure? Start with 1 week, check that everything works, then change it to 1 year. Many security scanners require at least 6 months.

Embedding in iframes

This controls whether other websites can show your pages inside an iframe. Restricting it protects your visitors against clickjacking, where another site loads your page invisibly and tricks people into clicking on it.

Options:

  • Allowed on any site (default): any website can show your pages in an iframe.

  • Only on this domain: only pages on the same domain can show them in an iframe.

  • Not allowed: your pages can't be shown in an iframe anywhere.

Important: If your pages are embedded with an iframe on another website, such as your CMS, intranet or an app, keep this on "Allowed on any site". Otherwise those embeds stop working. Projects embedded with Vev's embed code load from Vev's embed service, not your domain, so they aren't affected.

Unlike HSTS, browsers don't remember this setting, so changing it back takes effect within about a minute.

FAQ

Q: A security scan says our site is missing HSTS or clickjacking protection. How do I fix it?

A: Set Force HTTPS (HSTS) to 1 year and Embedding in iframes to "Only on this domain", then click "Save". Ask for the scan to be re-run after a minute or two.

Q: Can I set other security headers, such as a Content Security Policy?

A: Yes. Add them as custom headers under SEO → HTTP Headers. See SEO Settings. We advise against this unless you are experienced with HTTP headers.

Q: Can I enable includeSubDomains or preload for HSTS?

A: These affect other subdomains, so the Security tab doesn't offer them. If you need them, add a custom Strict-Transport-Security header under SEO → HTTP Headers.

Did this answer your question?