LH HSTS

plugin banner

HSTS is HTTP Strict Transport Security, a means to enforce using SSL even if the user access the site through HTTP and not HTTPS.

This plugin send the proper headers for full ssl security. For more information on what this is and why it is important visit: http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

The options are preset to enable browsers to preload the HSTS directive but can be overwritten by filters which are clearly documented in the code.

Author:Peter Shaw (profile at wordpress.org)
WordPress version required:3.0
WordPress version tested:5.4.4
Plugin version:1.25
Added to WordPress repository:02-03-2016
Last updated:12-07-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:78
Rated by:7
Plugin URI:https://lhero.org/portfolio/lh-hsts/
Total downloads:298 369
Active installs:1 000+
plugin download
Click to start download

This plugin send the proper headers for full ssl security. For more information on what this is and why it is important visit: http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

The options are preset to enable browsers to preload the HSTS directive but can be overwritten by filters which are clearly documented in the code.

Did you find this plugin helpful? Please consider writing a review.

To update the max-age settings, add the following code to your functions.php

add_filter('lh_hsts_max_age', 'modify_ls_hsts_max_age_func');

function modify_ls_hsts_max_age_func( $max_age ){
    return false;
}
    `

To update the subdomain settings, add the following code to your functions.php

add_filter(‘lh_hsts_subdomain’, ‘modify_ls_hsts_subdomain_func’);

function modify_ls_hsts_subdomain_func( $subdomain ){
return false;
}
`

To update the preload setting, add the following code to your functions.php

add_filter('lh_hsts_preload', 'modify_ls_hsts_preload_func');

function modify_ls_hsts_preload_func( $preload ){
    return false;
}
    `

To update the redirect setting, add the following code to your functions.php

add_filter(‘lh_hsts_redirect’, ‘modify_ls_hsts_redirect_func’);

function modify_ls_hsts_redirect_func( $redirect ){
return false;
}
`


FAQ
ChangeLog