r/ecommerce • u/abc_123_anyname • 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.
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 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.
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/[deleted] 1d ago
[removed] — view removed comment
1
u/[deleted] 8h ago
[removed] — view removed comment