Remove X-Pingback HTTP header
-
Hi,
I’m using your plugin on my website. I found out that, although pingbacks are disabled, WordPress still sends a HTTP header that points to the xmlrpc.php file.
X-Pingback: https://domain/xmlrpc.php
I’ve added this small piece of code to the plugin file on my server in order to prevent WordPress from sending that header and I thought I’d share this with you:
add_filter( 'wp_headers', 'remove_x_pingback_header' ); function remove_x_pingback_header( $headers ) { unset( $headers['X-Pingback'] ); return $headers; }
Greets,
Thomas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove X-Pingback HTTP header’ is closed to new replies.