Tu On Social
Member
Posted 5 days ago #
// HSTS
if (is_ssl()){
$time = esc_attr(get_option('security_headers_hsts_time'));
$subdomain = esc_attr(get_option('security_headers_hsts_subdomains'));
$preload = esc_attr(get_option('security_headers_hsts_preload'));
if ( ctype_digit($time) ) {
$subdomain_output = $subdomain > 0 ? "; includeSubDomains" : "";
$preload_output = $preload > 0 ? "; preload" : "";
header("Strict-Transport-Security: max-age=$time $subdomain_output $preload_output");
}
}
https://wordpress.org/plugins/security-headers/
SimonRWaters
Member
Plugin Author
Posted 13 minutes ago #
Added to git, attributed to "Jamie", if you let me know your last name I'll add it to the readme.txt too.
WordPress ...
ما را در سایت WordPress دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 326
تاريخ: پنجشنبه
14 مرداد
1395 ساعت: 4:56