r/ecommerce • • 1d ago

🛒 Technology Continuous Bot Attacks

Anyone else seeing a dramatic rise in bad , malicious bot traffic this season?

I own a 7 digit ecom business php based open source non-shopify platform hosted in the USA on a VPS delivered through Cloudflare and since August, ramping up in October, have been under bot attacks almost continuously.

Millions of requests per day from

DigitalOcean (ASN 14061)
RCN (ASN 6079)
Cox Communications (ASN 22773)
And a few others

I’m fairly certain they are all related as within the requests the malformed patterns are the same and all target high query pages like =view_all or write_review…..

I worked diligently to make sure my queries are as low overhead as possible. They moved to malformed URL’s that deliver my custom 403 page that under load had too many queries…. So made a dumb replacement.

I’m now writing narrow expressions to mitigate, so far so good, however they seem to becoming smarter. The attack today, 99.8% automated traffic, had a 15% CSR through cloudflares managed challenge page so had to move it to block.

All this in peak season - where I’m trying to not put the site behind super bot mode or attack mode.

Sorry for the vent…. Anyone else feeling this?

I feel like I’m balancing a slow site or presenting a managed challenge page to potential customers.

9 Upvotes

21 comments sorted by

2

u/Crimnl 1d ago

Just fully block the datacenter ASNs and let trough verified bots in the same Cloudflare rule. There are lists on GitHub like: https://github.com/bountyyfi/bad-asn-list

1

u/abc_123_anyname 1d ago

Thank you yes a few are listed.

Many are not: 22773 6079 150436 45102 24651 45090 132203

1

u/abc_123_anyname 13h ago

A reply from someone to msg request without enough days under their belt - is all great advice so will copy it here:

Hey! I actually replied to your post in r/ecommerce about the bot attacks, but AutoMod removed my comment because my Reddit account is under 30 days old. Figured I'd send it here in case it saves you some headache during peak season:

Quick heads up on the extra ASNs you listed in the comments - 22773 (Cox) and 6079 (RCN) aren't datacenters, they're major US residential ISPs. The attackers are rotating through residential proxy pools. If you blanket-block those two during peak season you're going to drop real US buyers. Hard-block the cloud/overseas ASNs (45102, 45090, 132203, DO), and handle the residential ones strictly by behavior.

Aside from making your error pages static so they don't hit the DB, a few server-level tweaks usually stop PHP/MySQL from choking without throwing captchas at real customers:

- Micro-cache the heavy read paths (=view_all, reviews). Bots append random malformed query strings specifically to bust your cache and force PHP-FPM + MySQL to run on every hit. Set up Nginx fastcgi_cache or a Cloudflare Cache Rule to serve a 30-60s cached version for anonymous GET requests while ignoring unknown query params. That eats millions of hits at the edge with zero DB load.
- Lock down your VPS origin IP. Make sure ufw or iptables drops everything on 80/443 that isn't coming from Cloudflare's IP ranges. A lot of "smart" bot traffic completely bypasses Cloudflare by hitting old DNS/origin IPs directly.
- Throttle at Nginx before it touches PHP-FPM. Put a tight limit_req zone on those query-heavy URI patterns so spikes get a cheap 429 from Nginx in microseconds instead of starving your PHP-FPM worker pool during actual checkouts.

Hope that helps take the load off your VPS!

1

u/abc_123_anyname 12h ago

Here’s a new one from today’s batch of bot traffic.

Today they’re hitting an action I’ve created for a future agentic checkout I was building that IS listed in my Google/Meta product feed.

My feed is the only place the attackers could have become aware the action exists that essentially adds a product ID to the cart

Example: …..pack-100-p-12346.html?action=add_now&products_id=12345

Not sure what to make of this, other than they’re reading my feed.

The feed is not behind authentication however does use an obscured url.

4

u/xtarga 1d ago

It's been non-stop. Also on non-shopfy ecommerce. We are deeply embedded in our operations to the frontend so switching to Shopify isn't like a quick option and honestly I dont even know if being on Shopify helps.

Whack-a-mole'ing IPs or networks sometimes work. But more of than not, they figure out a way or they start distributing IP's to thousands of different networks. Sometimes it's even better to not ban the malicious IP but keep monitoring it.

I don't have a recommendation for you because I even thought of just shutting the site because of this. Between ads/shipping and every imaginable cost going higher every year and whatever little margin you got left is sometimes not worth the headache of dealing with stuff like this.

5

u/dmdbGroup 1d ago

Yeah, this is the same wave everyone's seeing since August. The part I'd stop and think about isn't the ASN list, it's that 15% number.

  1. That 15% solving the managed challenge is mostly bots that learned to click through, but some of it is real people on weird networks. Split your challenge logs by path. If the solves are all on =view_all and write_review and never on checkout or account pages, block those two paths outright for datacenter ASNs and leave the rest alone. You don't need one rule for the whole site.
  2. Your custom 404 page was the real leak. Bots love hammering URLs that miss, because a heavy 404 runs the same queries as a real page. Make the 404 static. No database calls at all. That one change has saved more than one store I've seen from exactly this kind of slowdown.
  3. Stop chasing individual ASNs and block by behaviour at the edge instead. Cloudflare rate limiting on the pattern, say more than 20 requests a minute to any URL with =view_all or write_review, from an IP with no prior session cookie. Real shoppers don't hit those pages 20 times a minute. Bots do.
  4. For peak season, put the managed challenge only on the paths the bots hit, and keep checkout and product pages clean. One week of that split will tell you more than another month of ASN lists. If real conversion holds steady and the junk traffic drops, you have your setup.

Rule of thumb: if a rule would also block a real customer on a phone with a bad connection, it belongs on a bot-only path, not on your whole site.

1

u/StarPuzzleheaded2599 1d ago

Hire a developer or do by yourself , block data center ips. Would cover much of your bot traffic

1

u/SiliconMachine 1d ago

cox and rcn in your list are home internet providers, not hosting. that part is most likely a residential proxy pool, so asn blocks will keep losing there, and every one you add also blocks real shoppers on those networks

since they only go after the expensive pages, I'd make those pages cheap instead of trying to tell who's a bot. cache view_all at cloudflare for anyone without a session or cart cookie, so a million hits barely touch your server. make write_review do nothing until there's a logged-in customer or a token from the product page. then one rate limit rule on just those two paths, per ip, set well above what a person would ever do

that keeps challenges away from people who are trying to buy

rough timing for it, good luck with the season

1

u/immewnity 21h ago

The RCN/Astound networks (AS6079) have been hitting out servers hard over the past 48 hours, specifically attacking a Piwigo instance.

0

u/s_hecking 1d ago

I’m working on a bot detection script and filters with auto-block. Hope to have a final build soon. Q1 next year.

Checking filtered logs you can sometimes find patterns in the URLs to help with rules if you’re doing things manually. Perhaps setting up honey pot files only bots would hit?

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/AutoModerator 1d ago

Your comment in /r/ecommerce was automatically removed as your 'comment' karma is below 20 (we do not consider your total karma; your post and comment karma are separate numbers and must both meet their minimum requirement). You can increase your comment karma by posting in other areas of Reddit to earn upvotes. The higher quality the content, the higher your karma will become.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/AutoModerator 1d ago

Your comment in /r/ecommerce was automatically removed as your account is too new (accounts must be at least 30 days old). Try again a little later.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 8h ago

[removed] — view removed comment

1

u/AutoModerator 8h ago

Your comment in /r/ecommerce was automatically removed as your 'comment' karma is below 20 (we do not consider your total karma; your post and comment karma are separate numbers and must both meet their minimum requirement). You can increase your comment karma by posting in other areas of Reddit to earn upvotes. The higher quality the content, the higher your karma will become.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.