{"id":42268,"date":"2016-03-02T02:22:02","date_gmt":"2016-03-02T02:22:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lh-hsts\/"},"modified":"2020-07-12T05:30:55","modified_gmt":"2020-07-12T05:30:55","slug":"lh-hsts","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/lh-hsts\/","author":2531614,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.25","stable_tag":"trunk","tested":"5.4.19","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"LH HSTS","header_author":"Peter Shaw","header_description":"","assets_banners_color":"c3d5db","last_updated":"2020-07-12 05:30:55","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lhero.org\/plugins\/lh-hsts\/","header_plugin_uri":"https:\/\/lhero.org\/portfolio\/lh-hsts\/","header_author_uri":"https:\/\/shawfactor.com\/","rating":4.3,"author_block_rating":0,"active_installs":600,"downloads":350996,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"5"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1362244","resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1362244","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[34310,1908,727,600,1536],"plugin_category":[54],"plugin_contributors":[90516,83584],"plugin_business_model":[],"class_list":["post-42268","plugin","type-plugin","status-publish","hentry","plugin_tags-hsts","plugin_tags-https","plugin_tags-redirect","plugin_tags-security","plugin_tags-ssl","plugin_category-security-and-spam-protection","plugin_contributors-asitha","plugin_contributors-shawfactor","plugin_committers-shawfactor"],"banners":{"banner":"https:\/\/ps.w.org\/lh-hsts\/assets\/banner-772x250.jpg?rev=1362244","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lh-hsts\/assets\/icon-128x128.png?rev=1362244","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Did you find this plugin helpful? Please consider <a href=\"https:\/\/wordpress.org\/support\/view\/plugin-reviews\/lh-hsts\">writing a review<\/a>.<\/strong><\/p>\n\n<h3>To update the max-age settings, add the following code to your functions.php<\/h3>\n\n<pre><code>add_filter('lh_hsts_max_age', 'modify_ls_hsts_max_age_func');\n\nfunction modify_ls_hsts_max_age_func( $max_age ){\n    return false;\n}\n    `\n\n<h3>To update the subdomain settings, add the following code to your functions.php<\/h3>\n\n<\/code><\/pre>\n\n<p>add_filter('lh_hsts_subdomain', 'modify_ls_hsts_subdomain_func');<\/p>\n\n<p>function modify_ls_hsts_subdomain_func( $subdomain ){\n    return false;\n}\n    `<\/p>\n\n<h3>To update the preload setting, add the following code to your functions.php<\/h3>\n\n<pre><code>add_filter('lh_hsts_preload', 'modify_ls_hsts_preload_func');\n\nfunction modify_ls_hsts_preload_func( $preload ){\n    return false;\n}\n    `\n\n<h3>To update the redirect setting, add the following code to your functions.php<\/h3>\n\n<\/code><\/pre>\n\n<p>add_filter('lh_hsts_redirect', 'modify_ls_hsts_redirect_func');<\/p>\n\n<p>function modify_ls_hsts_redirect_func( $redirect ){\n    return false;\n}\n    `<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire <code>lh-hsts<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>How do I change the behaviour of this plugin?<\/h3><\/dt>\n<dd><p>Through filters, all of which are commented in the code and will be documented below.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.00 - February 28, 2016<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>\n\n<h4>1.10 - March 28, 2016<\/h4>\n\n<ul>\n<li>Use correct domain<\/li>\n<\/ul>\n\n<h4>1.11 - April 02, 2017<\/h4>\n\n<ul>\n<li>Added class exists check<\/li>\n<\/ul>\n\n<h4>1.20 - May 11, 2017<\/h4>\n\n<ul>\n<li>Just made everything look pretty and structured<\/li>\n<\/ul>\n\n<h4>1.21 - May 24, 2017<\/h4>\n\n<ul>\n<li>Bug fix<\/li>\n<\/ul>\n\n<h4>1.22 - January 10, 2018<\/h4>\n\n<ul>\n<li>Singleton pattern<\/li>\n<\/ul>\n\n<h4>1.23 - March 04, 2018<\/h4>\n\n<ul>\n<li>Fixed fiulter name<\/li>\n<\/ul>\n\n<h4>1.24 - August 19, 2018<\/h4>\n\n<ul>\n<li>get_home_url and other minor stuff<\/li>\n<\/ul>\n\n<h4>1.25 - May 16, 2019<\/h4>\n\n<ul>\n<li>pprevent direct access to the php file, minor security, and compatibility bump<\/li>\n<\/ul>","raw_excerpt":"HSTS is HTTP Strict Transport Security, a means to enforce using SSL even if the user accesses the site through HTTP and not HTTPS.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42268"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shawfactor"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42268"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42268"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42268"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42268"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42268"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}