Cloudways’ Cloudflare Enterprise integration is a crock of shit

We have a few clients with larger e-commerce (WordPress + WooCommerce) stores hosted on UK servers via Cloudways. Generally speaking, the service is fine and the cost is decent for what we get. Support isn’t always quick or knowledgeable but we rarely need it, so it’s not a massive issue. However, I’ve had two different clients on two different Cloudways products both of whom have had problems with their integrated “Cloudflare Enterprise” solution recently, so I feel obliged to moan about it (old school blogging style).

Client A was a brand new e-commerce build: large site, highly bespoke build with some complex third party integrations, but optimised AF👌 (Fantastic project and at some point I’ll write about it.) Hosted on a Vultr box via Cloudways Flexible.

Client B is an inherited WooCommerce site with Elementor, Mailchimp, multiple third party plugins; usual run of the mill ‘built by a plugin jockey’ kinda site. Hosted on Cloudways Autonomous, which is designed to grow and shrink based on the needs of your site at the time.

Client A

Within an hour of Client A’s website going live, they were hit by every scraper on the planet wanting a piece of it. We rapidly rolled out additional optimisations, cached things that weren’t already cached, implemented an atomic mutex on product filters (I hadn’t even heard of an atomic mutex prior to this) so that if multiple people loaded the same combination of filters it would pull from transients instead of rebuilding the list each time, and blocked a few repeat IPs. While that helped bring the CPU load down a smidgen, it was ultimately fruitless as the scrapers just rolled through a another batch of IPs and changed crawl behaviour to bypass blockers, overwhelming the site and bringing it down.

We spoke to Cloudways support and they eventually got back to us and suggested enabling their Cloudflare Enterprise integration at ~$5 per month per site, which would definitely solve all of the problems we were having. We managed to coordinate the client’s tech guy, the client and us to do the DNS switcheroo to route through Cloudflare Enterprise and… it made sod all difference.

I was really surprised by how limited the toolset was once the Enterprise service was enabled. When you think about how much you get in Cloudflare’s free package, it seemed utterly bizarre that we were paying for a shitter package?! We had no firewall rules, no bot detection, no country targeting, no ASIN blocking, just a basic rate throttle and a yes/no for under attack. No surprise that it didn’t make any difference to the situation, tbh.

The only way we could keep the site online at this point was by enabling ‘Under Attack’ mode, but that presented UX challenges to genuine customers and completely prevented some of our third party integrations from working: it wasn’t a sustainable solution.

We called an emergency meeting, coordinated another DNS switcheroo, turned off “Enterprise” and routed through Cloudflare properly. This opened up all the usual tools and I was able to completely resolve the problem with a handful of custom rules triggering managed challenges to questionable traffic. Problem solved, ongoing cost: $0.

Client B

Client B’s problems were similar. Scrapers and bots targeting computationally ‘expensive’ WooCommerce pages and driving CPU usage and bandwidth costs through the roof. Except, their site didn’t go down, because autonomous just allowed the server to scale to meet the “needs” of these bots.

Cloudways Autonomous has Cloudflare Enterprise enabled as standard, it’s part of the offering. No additional $5 charge, but paying over the odds (~$90pm) for space and bandwidth compared to a fixed server (~$60pm), so costing in the long run anyway (even without the overage fees). As per the fixed server integration, it has the same problem with lack of tooling though: no custom rules, no bot management, basically just an on/off switch for under attack.

I flagged the ever increasing costs to the client who raised it with Cloudways, and Cloudways’ answer? To change to a different, slightly more expensive Autonomous package. No management of the bots and scrapers, just throwing more money at it. 🤬 Considering their integration page talks about ‘real results’, ‘enterprise grade protection’, ‘everything you need’, etc this response (and the corresponding feature set) is an absolute joke.

It took some back and forth persuasion, but after the client’s hosting fees skyrocketed to over $800 for the month with no end in sight (a reminder: this should be $90 per month for the base package) they agreed to switch to a fixed cost server routed through Cloudflare free. I finally managed to execute that migration yesterday and everything was confirmed as propagated and working this morning. In the space of 6 hours, Cloudflare free has mitigated nearly 100,000 requests that would have otherwise hit the server:

Screenshot of the security analytics from the client's cloudflare account showing 99.3k requests mitigated by cloudflare

…and all for nothing, nada, zilch. This is going to be pleasant relief next month, as the total bill for Autonomous over August topped $1100 yesterday.

Enterprise schmenterprise. In future, I’ll be recommending clients stick to Cloudflare’s free package, and Cloudways can suck my proverbial.

Finding my (blogging) roots

I’ve been feeling restless about my blog for a good long while. Wanting to update, not quite wanting to commit the words I want to say to the vastness that is the internet. However, a resurgence in indie websites and personal blogging has given me a bit of motivation, so I’m hoping this is the… read full entry »

Forcing a ‘read more’ link on WordPress excerpts even when excerpt text is set

Wow, that title is a bit of a mouthful. OK, so let me decipher: you can customise WordPress excerpts to add a “read more” link to post excerpts, e.g. as per this (cleaned up) example from the codex: function new_excerpt_more( $more ) { global $post; return ‘<a class=”moretag” href=”‘. get_permalink( $post->ID ) . ‘”>Read the… read full entry »

I want to code

I’m sat at my laptop — nothing new there — with a work todo list as long as my arm because I did very little in the last week (feeling poop) and all I want to do is code. “But Jem, you’re a web developer, work is code?!” I hear you cry. I don’t want… read full entry »

Mail Form Updates

I officially released the premium version of my PHP mail form last night. Partly because it’s been on the cards for a while, and partly because I wanted to get started on my plan to be mortgage free in five years. I can’t hang about if I need to be paying in £1,633.09 per month…. read full entry »

How to: make the whole WordPress excerpt clickable

A client recently asked me to make the post excerpts in their blog page clickable. This seems like a reasonable request and the logical answer (if you know your WordPress basics) is to open the relevant template file (probably index.php or home.php in this case) and wrap the_excerpt(); in <a href=”<?php the_permalink(); ?>”.. (and so… read full entry »

More WordPress Goodies

I’ve been getting about a bit lately — no sarcastic comments please — so thought I’d share the results of my hard work. More WordPress stuff: Developing bespoke WordPress plugins for a work client — this one was a bit odd to write as I’m not used to such a strict editorial process. Apparently you’re… read full entry »

End of an Era, a New Beginning

Tutorialtastic is closing today. Closing, gone. After 8 years of hardy service to you, the blogger, the developer, the web hobbyist. Don’t cry, my sweets, for where one door closes another duly opens… It has taken nearly THREE years to get to this point (albeit delayed due to pregnancy, sickness, babies, life, work, etc). Three… read full entry »

NinjaLinks Feature Requests

I’m being nagged for a NinjaLinks update ;) If you currently use the script and have feature in mind, please add your requests here. Can’t guarantee a date for release (for obvious reasons) but will fit it in when I can.

On Tumblelogs and Why I Love Habari

For at least 4-5 years I’ve been desperate to turn my blog into a sort of “tumblelog”; that is, a blog that consists of multiple content types that you can easily update with more than just full on text entries. The problem is, at first I lacked the know-how to achieve it — my early… read full entry »