Andy
A-ndy.dev

A-ndy.dev

Disable XML-RPC in Wordpress to Prevent DDoS Attack

Andy's photo
Andy
·Aug 7, 2021·

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

 
Share this