',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
'browsercache.security.session.use_only_cookies',
'control' => 'selectbox',
'selectbox_values' => $security_session_values,
'description' => wp_kses(
sprintf(
// translators: 1 opening HTML acronym tag, 2 closing HTML acronym tag.
__(
'This setting prevents attacks that are caused by passing session IDs in %1$sURL%2$ss.',
'w3-total-cache'
),
'',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
),
)
);
?>
'browsercache.security.session.cookie_httponly',
'control' => 'selectbox',
'selectbox_values' => $security_session_values,
'description' => esc_html__( 'This tells the user\'s browser not to make the session cookie accessible to client side scripting such as JavaScript. This makes it harder for an attacker to hijack the session ID and masquerade as the effected user.', 'w3-total-cache' ),
)
);
?>
'browsercache.security.session.cookie_secure',
'control' => 'selectbox',
'selectbox_values' => $security_session_values,
'description' => esc_html__( 'This will prevent the user\'s session ID from being transmitted in plain text, making it much harder to hijack the user\'s session.', 'w3-total-cache' ),
)
);
?>
|
checkbox( 'browsercache.hsts' ); ?>
',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
|
|
checkbox( 'browsercache.security.xfo' ); ?>
|
|
|
value="_config->get_string( 'browsercache.security.xfo.allow' ) ); ?>" size="50" placeholder="Enter URL" />
|
|
checkbox( 'browsercache.security.xss' ); ?>
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
|
|
checkbox( 'browsercache.security.xcto' ); ?>
|
|
checkbox( 'browsercache.security.pkp' ); ?>
',
'',
'',
'',
'',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.pkp.pin' ) ); ?>" size="50" placeholder="Enter the Base64-Encode of the SHA256 Hash" />
',
'',
'',
''
),
array(
'b' => array(),
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.pkp.pin.backup' ) ); ?>" size="50" placeholder="Enter the Base64-Encode of the SHA256 Hash" />
',
'',
'',
''
),
array(
'b' => array(),
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
|
|
|
value="_config->get_string( 'browsercache.security.pkp.report.url' ) ); ?>" size="50" placeholder="Enter URL" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
|
|
checkbox( 'browsercache.security.referrer.policy' ); ?>
|
|
|
|
|
checkbox( 'browsercache.security.csp' ); ?>
',
'',
'',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.reporturi' ) ); ?>" size="50" placeholder="Example: https://endpoint.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.reportto' ) ); ?>" size="50" placeholder="Example: csp-endpoint" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.base' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.connect' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.font' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.frame' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.img' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.media' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.object' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.script' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.style' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.form' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.frame.ancestors' ) ); ?>" size="50" placeholder="Example: 'none'" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.plugin' ) ); ?>" size="50" placeholder="Example: application/x-shockwave-flash" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.sandbox' ) ); ?>" size="50" placeholder="Example: allow-popups" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.child' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
and
|
|
|
value="_config->get_string( 'browsercache.security.csp.manifest' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.scriptelem' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
elements.', 'w3-total-cache' ); ?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.scriptattr' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.styleelem' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
elements and elements with rel="stylesheet".', 'w3-total-cache' ); ?>
|
|
|
value="_config->get_string( 'browsercache.security.csp.styleattr' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.worker' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.csp.default' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
checkbox( 'browsercache.security.cspro' ); ?>
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.reporturi' ) ); ?>" size="50" placeholder="Example: https://endpoint.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.reportto' ) ); ?>" size="50" placeholder="Example: report-to csp-endpoint" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.base' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.connect' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.font' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.frame' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.img' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.media' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.object' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.script' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.style' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.form' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
',
''
),
array(
'acronym' => array(
'title' => array(),
),
)
);
?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.frame.ancestors' ) ); ?>" size="50" placeholder="Example: 'none'" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.plugin' ) ); ?>" size="50" placeholder="Example: application/x-shockwave-flash" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.sandbox' ) ); ?>" size="50" placeholder="Example: allow-popups" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.child' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
and
|
|
|
value="_config->get_string( 'browsercache.security.cspro.manifest' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.scriptelem' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
elements.', 'w3-total-cache' ); ?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.scriptattr' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.styleelem' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
elements and elements with rel="stylesheet".', 'w3-total-cache' ); ?>
|
|
|
value="_config->get_string( 'browsercache.security.cspro.styleattr' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.worker' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
|
|
value="_config->get_string( 'browsercache.security.cspro.default' ) ); ?>" size="50" placeholder="Example: 'self' 'unsafe-inline' *.domain.com" />
|
'browsercache.security.fp',
'disabled' => Util_Ui::sealing_disabled( 'browsercache.' ),
'control' => 'checkbox',
'checkbox_label' => esc_html__( 'Feature-Policy / Permissions-Policy', 'w3-total-cache' ),
'description' => esc_html__( 'Allows you to control which origins can use which features.', 'w3-total-cache' ),
'label_class' => 'w3tc_single_column',
)
);
?>
'browsercache.security.fp.values.keyvalues.' . $i['label'],
'value' => ! empty( $fp_values[ $i['label'] ] ) ? $fp_values[ $i['label'] ] : '',
'disabled' => Util_Ui::sealing_disabled( 'browsercache.' ),
'control' => 'textbox',
'label' => $i['label'],
'textbox_size' => '50',
'textbox_placeholder' => esc_html__( 'One of:', 'w3-total-cache' ) . esc_html( " * 'self' 'src' 'none' *.domain.com" ),
'description' => $i['description'],
)
);
}
?>