by Studio Be4 on WordPress.org
Enhance your WordPress site security with HTTP security headers and improve performance with smart caching. Works with all hosting providers.

Main settings page with all security header options
Security Headers & Caching is a comprehensive WordPress plugin that helps protect your website by implementing essential HTTP security headers and optimizing performance through intelligent caching mechanisms. Compatible with all hosting providers including Aruba, SiteGround, Bluehost, and more.
Security headers are HTTP response headers that tell your browser how to behave when handling your website’s content. They help protect against:
The plugin provides filters for developers to customize headers:
shc_security_headers – Filter to modify security headers arrayAfter installing and configuring the plugin, test your site’s security at:
* Security Headers
* Mozilla Observatory
This plugin does not collect, store, or transmit any user data. It only modifies HTTP response headers sent by your server.
shc_security_headers
Modify the security headers before they are sent.
add_filter( 'shc_security_headers', function( $headers ) {
// Add custom header
$headers['X-Custom-Header'] = 'custom-value';
// Modify existing header
$headers['X-Frame-Options'] = 'DENY';
return $headers;
} );
SHC_VERSION – Plugin version numberSHC_PLUGIN_DIR – Plugin directory pathSHC_PLUGIN_URL – Plugin directory URLSHC_PLUGIN_BASENAME – Plugin basenameFor support, feature requests, or bug reports, please visit:
* Plugin Website
Developed by Studio Be4 – Web Design & Development Agency
This plugin is licensed under the GPLv2 or later.