Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
How to stop xmlrpc.php attacks on Cpanel / WHM - PC✗3
How to stop xmlrpc.php attacks on Cpanel / WHM

How to stop xmlrpc.php attacks on Cpanel / WHM

xmlrpc.com is a WordPress file that was intended to be used for API’s but lately it’s more and more used as a way for hackers to brute-force WordPress installations.

To block access to xmlrpc.php on a single WordPress installation add the following code to your .htaccess file:

<Files xmlrpc.php>
order deny,allow
 deny from all
 allow from 127.0.0.1
</Files>

And in WHM to block access to xmlrpc.php file for all websites hosted on cPanel, add the following to WHM > Service Configuration > Apache Configuration > Include Editor

<IfModule mod_alias.c>
  RedirectMatch 301 /xmlrpc.php http://127.0.0.1/
</IfModule>
whm prevent xmlrpc attack 1024x828 - How to stop xmlrpc.php attacks on Cpanel / WHM

All request to xmprpc.php file across all cPanel account will be blocked.

whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.