Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 12:03:57

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,222
Website GitHub

Approaches against DDoS attacks?

I inherited a client a while back that last week was, and again currently is the target of a DDoS attack. There’s nothing about the site that is at all contentious and the owner runs a small business that I don’t think has a market share that anyone would put the effort into destroying so the reason is probably just bad luck.

Looking at the log files from yesterday, there were around 9 million requests at millisecond intervals that always use an url made of successive bits of other urls on the same site, e.g.:

/section/123/article-name/section/456/other-article-name/section/789/and-so-on

or using url parameters that we don’t use like ?lang=more-url-splurge.

At that point the host takes the site offline, and I’ve crafted various regex patterns to sink non-bona-fide url requests before textpattern tries to process them, but the host says it happens again (though I’ve not been able to corroborate that because the site was taken offline again).

The host has suggested we pass the domain through Cloudflare. This is not a hobby site, but also not a huge seller, e.g. it shows wares for a business but doesn’t have an online shop on the homepage itself, so I’m unsure whether Cloudflare’s free plan applies here. I guess not. That adds 20$ a month to the client’s outgoings. The site is currently hosted on a shared hosting plan.

Do I have any other sensible options? Could, for example, relocating to another host help here, or do I just set end up getting targeted on the new host? Are there hosts that do both cloudflare’s ddos filtering and the hosting part for an affordable fee?

Any advice gratefully received.


TXP Builders – finely-crafted code, design and txp

Offline

#2 Today 13:33:57

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,800
GitHub

Re: Approaches against DDoS attacks?

jakob wrote #342845:

The host has suggested we pass the domain through Cloudflare. This is not a hobby site, but also not a huge seller, e.g. it shows wares for a business but doesn’t have an online shop on the homepage itself, so I’m unsure whether Cloudflare’s free plan applies here. I guess not.

Priority 1 is business continuity. Try this:

  • Sign up customer with free Cloudflare account.
  • Make backup / offline copy of all DNS records and name server entries.
  • Add domain to Cloudflare, import existing DNS records.
  • Flip nameservers to Cloudflare.
  • Check the web logs for changes in the amount of garbage.
  • Confirm with host that you have followed their advice and site now routes through Cloudflare.

Try the free CF plan. If there’s no change, you can trivially flip the name servers back to their previous home and you’ve not lost any $ in service charges.

Is the host a well-known / big organisation? If they’re recommending CF then it follows that they’re not recommending a web application firewall on their own infrastructure…they want CF to do the heavy lifting. Web server rules are still hitting the web server, and at millisecond intervals on shared hosting that’s going to sting.

Is the attack hitting an IP address, the (edit: shared server) hostname, or the client domain? If either of the first two, maybe time to lift & shift to another host. If it’s the domain, that won’t help.

Last edited by gaekwad (Today 13:41:08)

Offline

#3 Today 13:39:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,800
GitHub

Re: Approaches against DDoS attacks?

jakob wrote #342845:

Do I have any other sensible options?

I haven’t used it myself, but KeyCDN has a reportedly competent (D)DoS service, and they’re Swiss-based.

Offline

#4 Today 13:40:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,222
Website GitHub

Re: Approaches against DDoS attacks?

Thanks. The GET requests are all to the domain.

I had a look at cloudflare alternatives (especially european) and all the one’s I could find that even quote prices were an order of magnitude more expensive.

I saw that OVHcloud and Hetzner say they have ddos protection free as part of their plans. Is something like that at all realistic?


TXP Builders – finely-crafted code, design and txp

Offline

#5 Today 13:43:41

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,800
GitHub

Re: Approaches against DDoS attacks?

jakob wrote #342848:

I saw that OVHcloud and Hetzner say they have ddos protection free as part of their plans. Is something like that at all realistic?

Tread carefully with Hetzner. They’re very competent and I actively use them, but they have a history of closing accounts with little to notice where there’re breaches of terms and conditions – especially newer accounts. If you approach them formally with a background to what you have going on, they will more than likely err towards co-operation – dialogue with a pre-sales person will set expectations for all concerned.

Offline

#6 Today 13:45:03

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,222
Website GitHub

Re: Approaches against DDoS attacks?

So you think I could use cloudflare free first, although ostensibly a small business, then upgrade if relevant. There’s been no history of attacks previously in the past 3-4 years I’ve been involved with the site.


TXP Builders – finely-crafted code, design and txp

Offline

#7 Today 13:47:19

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,800
GitHub

Re: Approaches against DDoS attacks?

jakob wrote #342850:

So you think I could use cloudflare free first, although ostensibly a small business, then upgrade if relevant.

Yes. I have multiple business clients on the free CF tier, never had a problem.

Offline

#8 Today 13:56:45

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,222
Website GitHub

Re: Approaches against DDoS attacks?

Thanks. I’ll try that then. Presumably you sign them up as individual customers?

KeyCDN say they offer DDOS protection but I find nothing concrete, no tutorials etc. except for information pages.


TXP Builders – finely-crafted code, design and txp

Offline

#9 Today 14:07:13

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,800
GitHub

Re: Approaches against DDoS attacks?

jakob wrote #342852:

Presumably you sign them up as individual customers?

Yes. Here’s what I’d do:

  • Sign up at CF as you with your own (agency) domain.
  • Sign client up at CF with their own (business) domain.
  • Log in as client, add yourself as an admin collaborator. Log out.
  • Log in as you, accept collab invite, and you’ll see their domain(s) in their own silo as an account.

This sidesteps any weirdness if they go with someone else, and they retain the keys to the kingdom.

Here’s what my CF accounts page looks like, each line is a separate collaborator project / client (and my own is named accordingly):

Last edited by gaekwad (Today 14:28:04)

Offline

Board footer

Powered by FluxBB