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.
- Log into Cloudflare.
- On the top, select Crypto.
- Select Enable HSTS.
- Select Next.
- Configure your HSTS preferences and select Save.