Enable HSTS in Cloudflare

Whether you’re using shared or VPS hosting services to create a website, it’s important to have a SSL for added security. For additional security you can use HTTP Strict Transport Security (HSTS) which forces browsers to request HTTPS pages from your domain.

This is typically configured within your .htaccess file. However, those using the Cloudflare content delivery network (CDN) for improved website speed can enable this with a few clicks. Below we’ll enable HSTS using Cloudflare.

Enable HSTS

  1. Log into Cloudflare.
  2. On the top, select Crypto.
  3. Select Enable HSTS.
  4. Select Next.
  5. Configure your HSTS preferences and select Save.

Learn more within Cloudflare documentation. Further secure web hosting security with our email authentication guide.

J
Jacqueem Technical Writer

Technical writer focused on cybersecurity and musicianship.

More Articles by Jacqueem

Was this article helpful? Let us know!