High CPU Usage on wordpress websites Print

  • 0

Due to a security issue in earlier versions of WordPress that allowed posting from xmlrpc.php, bots scan remote servers for the vulnerability which can cause high loads.

 
You can enter the following code to your .htaccess file which will block access to that file and keep them bots from wasting your accounts resources:

<Files "xmlrpc.php">
Order Allow,Deny
deny from all
</Files>


or add the following line in your .htaccess file

RewriteRule ^xmlrpc\.php$ "http\:\/\/0\.0\.0\.0\/" [R=301,L]


If you dont use an .htaccess file, please create a file named .htaccess and add the following content in it.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^xmlrpc\.php$ "http\:\/\/0\.0\.0\.0\/" [R=301,L]
</IfModule>


Was this answer helpful?

« Back