function add_hsts_header() { // Set the validity of the header, 24 months is set right here. $ageInSeconds = 63115200; // Render the header. header( 'Strict-Transport-Security: max-age=' . $ageInSeconds . '; includeSubDomains;' ); } add_action( 'send_headers', 'add_hsts_header' );

Nieuwsarchief

Search