When Bot Traffic Takes Down Your WordPress Site (Even When Access Is Denied)

· 4 min read · Mark Smith

What Happens When Bots Hit Protected Content

Every public WordPress site gets bot traffic. Scrapers, AI crawlers, vulnerability scanners—they constantly probe your site looking for accessible files. That’s not new.

What’s changed is the volume.

And when your media protection relies on PHP to handle every request, that traffic becomes expensive very quickly.


The Hidden Cost of “Protection”

Most WordPress media protection plugins work by routing file requests through PHP.

When a request comes in, the system:

That works fine for legitimate users.

But the same process runs for unauthorized requests too. Every bot request still triggers the full stack—just to say “no.”

👉 You’re spending server resources to deny traffic that should never have reached your server in the first place.


Why This Breaks Under Load

Let’s make this concrete.

Each request:

Result:

The system works—access is denied—but your site still becomes unavailable.


How to Tell If This Is Happening

Look for these signals:

If most of those requests are being denied, you’re burning resources on traffic that provides zero value.


Your Options

Option 1: Upgrade Your Hosting

More CPU, more PHP workers.

What it does: Gives you more headroom What it doesn’t do: Fix the root problem

You’re still paying to process bad traffic.


Option 2: Add Bot Mitigation

Tools like Cloudflare or Wordfence can block some traffic.

What it does: Reduces volume What it doesn’t do: Eliminate the problem

Some traffic always gets through.


Option 3: Move Protection to the Edge

Instead of handling requests in PHP, handle them before they reach your server.

No PHP. No WordPress. No database.

Your server never sees the request.


What This Looks Like in Practice

We tested a simple scenario: what happens when a bot swarm hits a protected file.

Origin-based protection (PHP handler per request):

Edge-based protection (XYZ Protect):

Both systems denied every request.

The difference is where the work happened.


Why This Matters

Under normal conditions, both approaches can work.

The difference shows up under load.

When bots hit your protected content:

Legitimate users don’t compete with bots for resources.


The Bigger Shift

Bot traffic is increasing.

AI crawlers are accelerating that trend.

Architectures that process every request at the origin will continue to feel pressure.

This isn’t a configuration issue—it’s where the work happens.


Is This Relevant to You?

If your site is slow due to:

This isn’t your fix.

But if your bottleneck is protected media under bot traffic:

This is the difference between scaling and constantly upgrading hosting.


What This Means for Your Hosting Costs

When your server is busy processing bot traffic, you have two choices:

Most site owners follow the first path. More CPU. More memory. More PHP workers.

But the underlying problem doesn’t change—you’re still spending resources on requests that deliver zero value. That means each upgrade only buys you time until traffic increases again.

If you’ve dealt with bot traffic at scale, you’ve probably seen this firsthand. The typical solutions involve adding layers—IP intelligence services, advanced bot filtering, or higher-tier CDN plans. Those tools can work, but they come at a cost. And they still operate on the assumption that your infrastructure needs to absorb and process incoming traffic.

At some point, it becomes cheaper to stop bad traffic than to keep scaling systems to handle it.


With edge-based protection, the equation changes.

Instead of scaling your infrastructure to absorb bad traffic, you prevent that traffic from consuming resources in the first place.


In practice, this often means:


Final Thought

The question isn’t whether access is denied. It’s how much work your server does to deny it.

If protected media delivery is where your server is getting overwhelmed, XYZ Protect moves that load off your origin entirely.


Protect Your WordPress Media Files

XYZ Protect prevents unauthorized access to your images, videos, and documents. Works with MemberPress and Paid Memberships Pro.

Learn More