This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#XML-RPC Schnittstelle abschalten | |
<Files xmlrpc.php> | |
Order Deny,Allow | |
Deny from all | |
</Files> | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Die XMLRPC-Schnittstelle komplett abschalten */ | |
add_filter( 'xmlrpc_enabled', '__return_false' ); | |
/* Den HTTP-Header vom XMLRPC-Eintrag bereinigen */ | |
add_filter( 'wp_headers', 'AH_remove_x_pingback' ); | |
function AH_remove_x_pingback( $headers ) | |
{ | |
unset( $headers['X-Pingback'] ); |