Title: Remove X-Pingback HTTP header
Last modified: August 22, 2016

---

# Remove X-Pingback HTTP header

 *  Resolved [thomaswm](https://wordpress.org/support/users/thomaswm/)
 * (@thomaswm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/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: [http://domain/xmlrpc.php](http://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
 * [https://wordpress.org/plugins/disable-xml-rpc-pingback/](https://wordpress.org/plugins/disable-xml-rpc-pingback/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Samuel Aguilera](https://wordpress.org/support/users/samuelaguilera/)
 * (@samuelaguilera)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/remove-x-pingback-http-header/#post-5615069)
 * Hi,
 * Thank you for your suggestion. I think it makes sense, so I have added the function
   to the plugin code and released 1.1 😉
 * Regards!

Viewing 1 replies (of 1 total)

The topic ‘Remove X-Pingback HTTP header’ is closed to new replies.

 * ![](https://ps.w.org/disable-xml-rpc-pingback/assets/icon-128x128.png?rev=2531321)
 * [Disable XML-RPC Pingback](https://wordpress.org/plugins/disable-xml-rpc-pingback/)
 * [Support Threads](https://wordpress.org/support/plugin/disable-xml-rpc-pingback/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-xml-rpc-pingback/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-xml-rpc-pingback/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-xml-rpc-pingback/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Samuel Aguilera](https://wordpress.org/support/users/samuelaguilera/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/remove-x-pingback-http-header/#post-5615069)
 * Status: resolved