Crazy Tech India Logo
  • 0
  • Account  
    •   Login
    •   -----
    •   Forgot Password?
  •   Home
  •   Store
    • Browse All
    • -----
    • Linux Shared hosting
    • Windows Shared Hosting
    • Linux Reseller
    • KVM VPS
    • Baremetal cloud server
    • Dedicated servers
    • Others Product
    • Openstack cloud
    • OpenVZ VPS
    • Lab As a Service
    • Register a New Domain
  •   Announcements
  •   Knowledgebase
  •   Network Status
  •   Contact Us
  1. Portal Home
  2. Knowledgebase
  3. VPS setup
  4. How to prevent wordpress xmlrpc.php attack

Knowledgebase

How to prevent wordpress xmlrpc.php attack  Print this Article

Xmlrpc is a type of attack in which your site goes down and if you see the error log of nginx
tailf /var/log/nginx/error.log  then there will be several xmlrpc request error. here is the fix for this.
Here is the steps i used to fix this issue with Fail2ban.

# apt-get install fail2ban iptables

# cd /etc/fail2ban

# cp jail.conf jail.local

# vim jail.local

Paste and append bellow lines at the end of file

[xmlrpc]
enabled = true
filter = xmlrpc
action = iptables[name=xmlrpc, port=http, protocol=tcp]
logpath = /var/log/nginx/access.log
bantime = 43600
maxretry = 2

Save.Now Create a fail2ban filter for this.

# vim /etc/fail2ban/filter.d/xmlrpc.conf

[Definition]
failregex = ^<HOST> .*POST .*xmlrpc\.php.*
ignoreregex =

Save and exit

# service fail2ban restart

Was this answer helpful?

Also Read

Complete Webserver- Ubuntu 14.04, apache, php-fpm, fail2ban, ufw, mariadb-server
A complete webserver for hosting heavy traffic php based CMS websites like wordpress, drupal etc...
dns server setup with ubuntu 14.04 VPS
We can setup a vps by using bind9 package # apt-get update #apt-get install bind9 # cd...
how to use cloudflare SSL with nginx
Using cloudflare for your website gives so many of options and flexibility for your web. Free...
how to setup LEMP stack on crazytech vps
If you have opted crazytech india KVM VPS for hosting a high traffic wordpress website then we...
How to enable page break / next page button in wordpress using simple php code
Some users uses plugin for enabling next page or page break button in wordpress editor. This...

Powered by WHMCompleteSolution

Copyright © 2021 Crazy Tech India. All Rights Reserved.
Choose language
  • العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська

Title

Loading...
Loading...