Disable XML-RPC in Wordpress to Prevent DDoS Attack

·

1 min read

Add the following code to wp-config.php

add_filter('xmlrpc_enabled', '__return_false');

Input the following code near the top of .htaccess file:

# START XML RPC BLOCKING < Files xmlrpc.php > Order Deny,Allow Deny from all < /Files >

FINISH XML RPC BLOCKING