Case Study: Investigating and Mitigating a Major DDoS Attack on a WordPress Website

Case Study: Investigating and Mitigating a Major DDoS Attack on a WordPress Website

How I investigated millions of suspicious requests, implemented multiple layers of bot protection and strengthened website security during an ongoing distributed denial-of-service attack.

The Challenge: Millions of Suspicious Requests

I recently undertook an investigation into a significant security and performance issue affecting a client’s WordPress and WooCommerce website, Steps & Threads.

The website had been experiencing unusually high levels of traffic, with performance deteriorating as automated requests placed increasing pressure on the hosting environment.

After investigating the traffic activity through Bluehost, I identified approximately 6.5 million requests, with a substantial proportion originating from suspicious automated sources.

This wasn’t ordinary website traffic. The volume and behaviour of the requests indicated a distributed denial-of-service (DDoS) attack, involving automated bots repeatedly accessing the website and consuming server resources.

The immediate priority was to identify the source of the problem, reduce malicious traffic and restore stability without unnecessarily restricting genuine customers.

The Investigation: Identifying the Attack

Rather than treating this as a conventional website performance issue, I began investigating the incoming traffic patterns and server activity.

The investigation revealed several concerning indicators:

  • Extremely high volumes of automated requests.
  • Repeated access attempts from suspicious IP addresses.
  • Traffic originating from multiple geographical locations.
  • Bot activity placing unnecessary pressure on the hosting infrastructure.
  • Increased server load affecting the website’s availability and performance.

The scale of the activity meant that simply blocking individual IP addresses would not provide a reliable long-term solution.

A more comprehensive security approach was required.

The Solution: Implementing Multiple Layers of Protection

I implemented several security measures designed to distinguish legitimate visitors from automated traffic and restrict unwanted activity.

1. Google reCAPTCHA v2 and v3

One of the first measures was integrating both Google reCAPTCHA v2 and v3.

These technologies provide different approaches to identifying suspicious activity:

  • reCAPTCHA v2: Provides an interactive verification challenge when a visitor needs to demonstrate that they are human.
  • reCAPTCHA v3: Analyses visitor interactions and assigns risk scores to help identify potentially malicious automated behaviour without routinely interrupting genuine visitors.

Both systems help reduce automated abuse and make it more difficult for bots to interact with protected areas of the website.

I configured the protection at a heightened security level to provide additional defence during the ongoing attack.

This can occasionally result in genuine visitors being challenged, but the priority during an active attack is to protect the website and maintain availability.

2. Additional Bot Blocking

I also implemented an additional bot-blocking mechanism to identify and restrict unwanted automated traffic.

This introduced another layer of filtering, helping prevent suspicious bots from repeatedly accessing the website and consuming unnecessary resources.

The objective was to reduce the volume of unwanted requests before they could continue placing pressure on the website.

3. Investigating Cloudflare Integration

Another important part of the remediation strategy was preparing to move DNS management and traffic protection through Cloudflare.

Cloudflare provides an additional layer between website visitors and the origin hosting server.

Its security infrastructure offers features including:

  • DDoS mitigation.
  • Web Application Firewall (WAF).
  • Automated bot protection.
  • IP and country-based traffic filtering.
  • Rate limiting.
  • Security challenges for suspicious visitors.
  • Traffic monitoring and analytics.

I created the Cloudflare account and prepared the domain for integration, with the remaining step being to update the domain’s nameservers at the registrar.

This would allow incoming traffic to pass through Cloudflare before reaching the Bluehost hosting environment, providing considerably more control over incoming requests.

The Results: Initial Mitigation

Following the implementation of Google reCAPTCHA v2 and v3, alongside the additional bot-blocking mechanism, I began seeing encouraging signs that the measures were helping to mitigate the attack.

The website’s protection was deliberately configured at a heightened level while the suspicious traffic continued.

It is important to understand that DDoS mitigation is not always a one-time fix. Attack traffic can change behaviour, rotate IP addresses and adapt to filtering mechanisms.

For this reason, I continued monitoring the situation rather than assuming the problem had been permanently resolved.

The next stage was to complete the Cloudflare integration to introduce an additional network-level layer of protection.

Ongoing Monitoring and Security

With an attack of this scale, monitoring is just as important as the initial implementation.

My ongoing priorities include:

  • Monitoring incoming traffic and suspicious request patterns.
  • Reviewing bot activity and security events.
  • Adjusting CAPTCHA sensitivity where necessary.
  • Identifying new sources of malicious traffic.
  • Monitoring website availability and server performance.
  • Completing the Cloudflare integration.
  • Ensuring genuine customers can continue accessing the website.

The objective is not simply to block traffic, but to maintain a balance between website security, performance and customer accessibility.

Conclusion: A Proactive Approach to Website Security

This incident highlights how quickly automated malicious traffic can affect a business website, particularly an eCommerce platform that relies on consistent availability.

With millions of suspicious requests targeting the website, the solution required more than a simple plugin installation or an isolated IP block.

It involved investigating the traffic, identifying suspicious behaviour, implementing multiple layers of bot protection and preparing a more comprehensive infrastructure-level security solution.

As a freelance WordPress developer, I believe website maintenance goes beyond updates, backups and routine troubleshooting. It also means being able to investigate unexpected technical problems, respond to security incidents and implement practical solutions to protect a client’s online business.

Website security isn’t just about preventing attacks. It’s about keeping your business online when it matters most.


Edd Brown | Freelance Web Designer & WordPress Developer

WordPress Development · WooCommerce · Website Security · Performance Optimisation

https://flashdesigner.com.hk

Comments are closed.

Freelance Web Designer | WordPress Developer | Hong Kong