Author Topic: Getting a lot of "502 Bad Gateway" errors  (Read 23201 times)

0 Members and 12 Guests are viewing this topic.

Offline Stray Electron

  • Super Contributor
  • ***
  • Posts: 2880
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #25 on: September 10, 2026, 11:34:11 pm »
  Perhaps. But I HATE Captcha!   I won't work for me on some web sights and I've had to entirely abandon using those websites.  AND it's a PITA to deal with. 
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #26 on: September 11, 2026, 12:03:59 am »
Any idea on how you got on someone's shit list?

Absolutely no idea.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1937
  • Country: au
  • Views and opinions are my own
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #27 on: September 11, 2026, 12:13:26 am »
Question:

Would it help to require all users to solve a CloudFlare captcha (like the simplest "click on the box" one) before first logging on or accessing the site?

I wouldn't mind having to do this at all if it helped reduce the bot attacks.

We are already doing this but only for targetted IP ranges. The issue with doing it globally is it breaks indexing by bots we do like, such as Google.
 
The following users thanked this post: EEVblog, Analog Kid

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #28 on: September 11, 2026, 12:31:45 am »
We are already doing this but only for targetted IP ranges. The issue with doing it globally is it breaks indexing by bots we do like, such as Google.

Yes, we like the good indexing bots, the high searchability of this forum is one of the great thing about it.

You can see the current bots indexing the forum in the stats:

 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5505
  • Country: nl
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #29 on: September 11, 2026, 10:03:43 am »
You can see the current bots indexing the forum in the stats:

Where is that? I've never seen it, is it maybe something only mods can see?

Keyboard error: Press F1 to continue.
 

Online Analog KidTopic starter

  • Super Contributor
  • ***
  • Posts: 4979
  • Country: us
  • DANDY fan (Discretes Are Not Dead Yet)
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #30 on: September 11, 2026, 11:41:11 pm »
The site was completely inaccessible for the last couple hours for me.
 

Offline tautech

  • Super Contributor
  • ***
  • Posts: 31975
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #31 on: September 11, 2026, 11:42:04 pm »
Forum is near unusable today.
Constant 502's....... :horse:
Avid Rabid Hobbyist
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #32 on: September 12, 2026, 12:42:13 am »
It's Vietnam again

 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #33 on: September 12, 2026, 12:46:08 am »
For those who haven't seen gnif's update:

Quote
So just a update on this.

A huge amount of traffic is being routed through AirTel (Indian provider) which has been difficult to nail down due to the enormous IP ranges they own and lack of consistent records for identifying them. I have found a way to identify them and I am working to implement it now, unfortunately it's a wide net but we have little option at this point. I am sorry to our Indian users that will be forced through the captcha gate now.

Edit:

If anyone is curious as to what is going on and why this has become such an issue. These bot farms are using proxies via desktop and mobile free addons/games, etc. Often the user has no idea that the "free" app they installed includes this in the agreement for using the product. This allows the bot farms to hide behind thousands of devices, blending their malicious traffic in with the general noise normal activity. There are some apps that even give the user's a kick-back for installing it on their phone, usually with the concept of getting paid for "sharing unused bandwidth". Google has been working to ban products that are acting as a proxy on their app store, but the damage is already done and we are left holding the bag.

So basically we can't just block bots because it's not a just a few servers or one country, it's apps on individual users phones or PC's being used as the bots. Hundreds of thousands of different IP's.
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8320
  • Country: us
  • TEAS is real.
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #34 on: September 12, 2026, 12:48:00 am »
I sent you an email Dave, but the solution is here: https://developers.cloudflare.com/fundamentals/reference/under-attack-mode/

Turning that one will (maybe) give humans a checkbox to click, and block the bots.

Thanks,
Josh
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
Best Continuity Tester Ever...Got Betterer!
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #35 on: September 12, 2026, 06:23:18 am »
I sent you an email Dave, but the solution is here: https://developers.cloudflare.com/fundamentals/reference/under-attack-mode/
Turning that one will (maybe) give humans a checkbox to click, and block the bots.

We've already had this on for months through Crowdsec and other custom solutions since the last bot attack.
But I know that only works at the server level, not the CDN/DNS level.
gnif is working non-stop on it. There is a reason we bypass Cloudflare even know our DNS is technically hosted there, it's in DNS bypass mode.
« Last Edit: September 12, 2026, 06:29:11 am by EEVblog »
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 6036
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #36 on: September 12, 2026, 07:32:51 am »
Quote
331k guest requests

I am an admin on a tech forum (aviation related) and we have been hit with big DDOS attacks. They totally brought the site down - just like is happening here. If you look in your server log it is immediately obvious. They come from rented botnets from all over the world. Every one is a new IP so traditional measures do not work. The browser agent strings are all valid too, etc. and they come from residential IPs because they are infected remotely controlled private PCs and laptops.

There is no defence apart from

- a much faster server and bandwidth ($$$)
- Cloudflare, and enable Precursor in the High mode - a new feature, very effective and not visible to real users

CF is free to nonprofit organisations. Not sure if EEVBLOG qualifies because you carry adverts (ours is donation funded) but the bottom paid CF tier is very cheap.

I highly recommend CF.

On ours we also use CF to firewall whole countries, because they generate a lot of attacks and hacking but are not relevant to the forum topic. So we block all of China, Russia, and some others. Traffic from those is 99.999% malicious. EEVBLOG can't do that.

We also firewall some server farms because they host a lot of bot attacks. They are not ISPs and people won't access the forum from their IP ranges (unless reading the forum via a VPN terminating there, which is a tiny minority, and who is legitimate and reads EEVBLOG over a VPN???).  Digital Ocean is one. Hetzner in Germany is another big one and if you complain they tell you to get lost. I know someone who blocked AWS and immediately reduced his server load by 95% :) but I gather google sometimes use AWS and you do want SEO. You should also not block Claude like you currently do. Claude is the "new SEO" nowadays.

CF offers about 10k IP ranges to block for free. It is simply amazing.

Forums also do accumulate enemies. Probably less in electronics than in aviation ;) but still... People who have been banned get extremely angry and want revenge. So you have to deal with all of that, and botnets are cheap to rent these days.

There is no downside to CF. It also gives you free HTTPS certificate so that is one less thing to break when the renewal cron job breaks. You have to enable some pass-throughs in CF for stuff like Paypal if you accept payments that way.
« Last Edit: September 12, 2026, 08:07:48 am by peter-h »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline benj38

  • Frequent Contributor
  • **
  • Posts: 373
  • Country: us
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #37 on: September 12, 2026, 08:25:56 am »
...and who is legitimate and reads EEVBLOG over a VPN???

I am surprised you think that.
Almost always, when one has a VPN on, all the internet traffic goes through it.
In other words, it would be extremely rare for someone who uses a VPN, for whatever reason, to selectively redirect EEVBLOG traffic to avoid the VPN, or turn the VPN off whenever one wants to quickly look at something on EEVBLOG.

I am sure you are not implying that most people who use a VPN do not do that for "legitimate" reasons, as that would be so off the mark I would not know where to begin.
« Last Edit: September 12, 2026, 08:28:49 am by benj38 »
 
The following users thanked this post: JustSquareEnough

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 6036
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #38 on: September 12, 2026, 08:32:47 am »
I do not doubt "you" exist but data shows that you are somewhere way below 1%. Do you know which server farm your VPN terminates on? You should.

Anyway, blocking server farms is just one of the low hanging fruits for reducing server load by big chunks. Cloudflare's Precursor (in HIGH mode, not the other one) deals with DDOS attacks effectively.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #39 on: September 12, 2026, 12:20:39 pm »
TEST, 10:14pm Sat 12th Sydney time.
Enabled Cloudflare proxy with Under Attack disabled.
Didn't work properly in Under Attack mode.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #40 on: September 12, 2026, 01:25:40 pm »
TEST, 11:24pm Sat 12th Sydney time.
Enabled Cloudflare proxy with Under Attack ENABLED
Very slow, but sometimes working.
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 6036
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #41 on: September 12, 2026, 01:41:14 pm »
You need Precursor



Currently I see two different captchas enabled, perhaps unintentionally. One is CF Under Attack and the other is something else.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #42 on: September 12, 2026, 01:54:59 pm »
No option for Precursor
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #43 on: September 12, 2026, 01:55:40 pm »
Currently I see two different captchas enabled, perhaps unintentionally. One is CF Under Attack and the other is something else.

Yes, we have had one (crowdsec) on the server for a few months now.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #44 on: September 12, 2026, 01:57:31 pm »
Oh, it's super snappy right now, instant!
Something just changed...
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5505
  • Country: nl
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #45 on: September 12, 2026, 01:59:47 pm »
Yes indeed, it's alive again! And only 1K guests, was it gnif?
Keyboard error: Press F1 to continue.
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 6036
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #46 on: September 12, 2026, 02:02:06 pm »
Google for

"cloudflare precursor not available in Settings"

Precursor is THE way to go today. Much better than Under Attack mode.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 
The following users thanked this post: EEVblog

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #47 on: September 12, 2026, 02:04:02 pm »
Yes indeed, it's alive again! And only 1K guests, was it gnif?

I don't know if he's asleep right now (he didn't sleep last night!) or he's beavering away, haven't been able to contact him, but I took a chance and turned the Cloudflare proxy on (it's been in DNS bypass for years now) and enabled under attack mode. That was an hour and half ago as I type this, and it would sometimes load and sometimes 502 timeout on cloudflare, and I was able to post briefly twice, but it was very weird.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 42272
  • Country: au
    • EEVblog
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #48 on: September 12, 2026, 02:06:07 pm »
Google for
"cloudflare precursor not available in Settings"
Precursor is THE way to go today. Much better than Under Attack mode.

"Cloudflare Precursor is an opt-in feature tied to Cloudflare's Enterprise Bot Management plan, meaning it will not appear for Free, Pro, or Business zones. [1] (https://securityboulevard.com/2026/07/cloudflare-precursor-extends-bot-detection-beyond-browser-checks/), [2] (https://decodo.com/blog/cloudflare-precursor-explained)Why It's MissingPlan Requirement: Precursor requires an Enterprise subscription with Bot Management enabled."

I'm on the free plan.
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 6036
  • Country: gb
  • Doing electronics since the 1960s...
Re: Getting a lot of "502 Bad Gateway" errors
« Reply #49 on: September 12, 2026, 02:07:59 pm »
I am on free plan too but (UK) get it.

Looks like a regionally controlled feature.

Their only free version "support" is a forum - worth a try.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->