Simple Ways To Protect Your WordPress Website Against DDoS Attacks

Protecting website against a DDoS attack is not easy. Most experts believe that minimizing threats of DDoS attacks are the best thing to do in this regard. Fixing vulnerabilities in WordPress website can help you tackle this issue.

Here are some of the ways you can adopt for the same:

No XML-RPC Functionality

The XML-RPC functionality is enabled by default. It has been in practice since the launch of WordPress 3.5. It is known to offer services such as trackbacks, pingbacks and many more. However, these are quite vulnerable. The functionality can also be exploited for sending HTTP requests to any target website. There may be times when many thousands of WordPress websites get compromised. Requests may start pouring in to a target website autonomously. Under such a situation, DDoS attack may occur.

The best thing to do is to remove the XML-RPC functionality. Make sure you do this on all of your WordPress websites. This is important to ensure they cannot be used to launch a DDoS attack using trackbacks and pingbacks.

Add the code given below into your .htaccess file:


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


As an alternative, you can also use a plugin such as Disable XML-RPC Pingback for disabling both trackback and ping back functionality. This will keep other XML-RPC functions intact.

Upgrade WordPress Version

You must focus on upgrading WordPress version very regularly. One of the major advantages of using WordPress is that gets regularly updated with security developments by the enthusiastic contributors and thriving community.

Make sure the following is upgraded on a regular basis:

– MySQL version
– WordPress installation
– OS version
– WordPress plugins
– WordPress themes

– PHP version on the server
– Apache version
– Other script or software you use

Apart from updating the WordPress, make sure all of the server side updates are maintained well.

Reach Web Host

This is important. You must get in touch with web hosts to talk about network hardware and servers. These need to be updated very regularly with the latest software versions. Make sure you discuss about the type of security measures offered by the web host. For instance, Cloudways ensures a number of security features to its clients. The best part is that these features are offered without any additional costs. Some of the features offered by Cloudways include access to SFTP & SSH, operating System Firewall, application Level Firewall, Server Cloning, Auto backups, Auto-Healing, Application updates and notifications, Auto updates and patches of the OS and services, and Dedicated IP on Cloud Server.

Security Plugins

This is a great way to add security to websites. When you configure a security plugin, you are actually adding a strong layer of defense to your WordPress website. Freelance front-end & WordPress developer will prefer using WordFence. It can dynamically monitor and prevent DDoS attacks on WordPress websites of all types and sizes.

Undoubtedly, security plugins tend to squeeze out a lot from web servers. This is because the scripts use large numbers of resources to keep tabs on different security threats faced by your WordPress website. A Cloudways maintained server can easily handle resources required by security plugins.

Visit Quora

Quora is a great medium for getting tips and suggestions on WordPress. Recently, one of the information security analysts Meinton Navas was asked about the best way to protect WordPress websites against DDoS attacks. According to Navas, hardening security of websites is the best way to ensure protection. Special attention should be given to WordPress websites. This is important for reducing threat levels related to DDoS as it cuts down on the number of susceptible WordPress resources accessible to the attacker.