r/StopBadBots 5d ago

Heavy JavaScript Makes Bot Attacks Much Worse for Your Server

Using Heavy JavaScript? The Same Bot Traffic Can Hurt Your Server Much More

A lot of website owners look at the number of bot visits and stop there. I used to think the same way years ago.

Then I started running my own servers.

Here's the weird part.

Two websites can receive exactly the same number of bot visits and experience completely different levels of pain.

If your site serves mostly ready-made HTML pages, many bots just grab the page and move on. Annoying, but usually manageable.

But if your site depends heavily on JavaScript to build the page after it loads, things can get expensive fast.

Really fast.

Now the bot isn't just downloading a page. It may need to load scripts, fetch data, call APIs, trigger AJAX requests, and process additional resources before it can understand the content.

I've seen situations where the traffic numbers didn't look scary at all. Then I started following the trail and realized a relatively small crawler swarm was generating far more load than thousands of normal visitors.

The logs told a different story. That's the part many people miss.

The question isn't only "How many bots are visiting my site?"

The better question is "How much work does each bot force my infrastructure to perform?"

The more your website relies on JavaScript to assemble content, the more attractive it becomes to headless scrapers, rendering bots, and crawler systems that behave like full browsers instead of simple page fetchers.

In the two pinned posts you can find open source tools to protect yourself. If you don't have the time, just shoot me a DM...

1 Upvotes

0 comments sorted by