CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

Secure Your Site with HTTP Strict Transport Security (HSTS)

Apache, Online Security, Security, Web Hosting, Web Security, Web Site Support, WordPress

In today’s digital landscape, securing your website is more than just a best practice—it’s essential. One powerful tool in your web security arsenal is HTTP Strict Transport Security (HSTS).

This policy ensures that browsers only connect to your site using secure HTTPS connections, protecting users from threats like protocol downgrade attacks and cookie hijacking.

This tutorial walks you through implementing HSTS on your website using the .htaccess file and submitting your domain to the HSTS preload list for maximum protection.

 

What is HSTS?

HTTP Strict Transport Security (HSTS) is a web security policy mechanism that forces browsers to interact with your site over HTTPS, even if users attempt to access it via HTTP.

Unlike a 301 redirect, which happens server-side, HSTS operates at the browser level—making it faster and more secure.

By implementing HSTS and submitting your domain for preloading, you’re taking a proactive step toward securing your website and protecting your users. It’s a simple yet powerful upgrade that every HTTPS-enabled site should consider.

Warning: Once enabled, HSTS disallows the user from overriding an invalid or self-signed certificate message. Your website will be inaccessible without a valid SSL.

 

Adding HSTS

To enable HSTS, you’ll need to modify your server’s root .htaccess file. Here’s how:

Add the following directive to the top of the file:

Header set Strict-Transport-Security “max-age=31536000; includeSubDomains; preload”

  • max-age=31536000: Tells browsers to remember the HTTPS-only rule for one year (in seconds).
  • includeSubDomains: Applies the rule to all subdomains.
  • preload: Authorizes your domain for inclusion in browser preload lists.

Submit your domain to the Chrome HSTS preload list by visiting HSTSPreload.org. This ensures that major browsers like Chrome, Firefox, and Edge enforce HTTPS from the first visit.

After submitting your domain to HSTSPreload.org, it may take 2–6 months for your domain to be accepted and included in browser preload lists. You can track browser support for HSTS at CanIUse.com.

 

Verifying HSTS

Once you’ve added the header, test it using SecurityHeaders.com.

This tool checks for the presence and correctness of your HSTS configuration along with other security headers.

Additional Tips

  • SSL Certificate Required: HSTS disables user overrides for invalid or self-signed certificates. Your site must have a valid SSL certificate.
  • Preload Eligibility: To be eligible for preloading, your max-age must be at least 18 weeks (10886400 seconds), and the header must include both includeSubDomains and preload.
    • Example: Header set Strict-Transport-Security “max-age=10886400; includeSubDomains; preload”

Summary of HSTS Header Components

  • Strict-Transport-Security: Activates HSTS policy for the domain.
  • max-age: Duration (in seconds) for which HTTPS-only access is enforced.
  • includeSubDomains: Extends the policy to all subdomains.
  • preload: Requests inclusion in browser preload lists.

 

Less Secure Configurations

These options are not preload-eligible and allow initial HTTP access:

Header set Strict-Transport-Security “max-age=10886400;”

Header set Strict-Transport-Security “max-age=10886400; includeSubDomains”

 

Conclusion

I welcome your thoughts, questions or suggestions on my article on how to secure your website with HTTP Strict Transport Security (HSTS).

You may support my work by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.

 

May 12, 2025
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/08/setup-wordpress-ssl-certificate-naples-florida.jpg 1280 1920 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2025-05-12 14:24:462025-11-12 20:21:04Secure Your Site with HTTP Strict Transport Security (HSTS)
Search Search

CONNECT WITH US

This field is for validation purposes and should be left unchanged.
Engagement*

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: Increase Website Security with X-Security Headers Link to: Increase Website Security with X-Security Headers Increase Website Security with X-Security HeadersSetup WordPress SSL Certificate Link to: Hide WordPress Admin Panel Help Tab Link to: Hide WordPress Admin Panel Help Tab WordPress Content Management System IconHide WordPress Admin Panel Help Tab
Scroll to top Scroll to top Scroll to top