Mobile App + CloudFlare Tunnel?
Hey All,
I've just set-up Immich together with a Cloudflare tunnel and the web interface is working like a charm! However when I try the mobile-app, I get stuck on this Cloudflare page that says ' just a moment' and I was wondering if they're any work arounds for this? I've tried looking into this section and googling, but I can't seem to find another alternative than not using Cloudflare.
Thank you for the help in advance!
Kind regards, Flux!

22 Replies
Looks like your requests are getting bot challenged.. https://developers.cloudflare.com/waf/custom-rules/use-cases/challenge-bad-bots/#adjust-for-mobile-traffic
Challenge bad bots · Cloudflare Web Application Firewall (WAF) docs
Cloudflare’s Bot Management feature scores the likelihood that a request originates from a bot.
The API instructions are probably the easiest to implement in the short term: https://developers.cloudflare.com/waf/custom-rules/use-cases/challenge-bad-bots/#exempt-api-traffic
Challenge bad bots · Cloudflare Web Application Firewall (WAF) docs
Cloudflare’s Bot Management feature scores the likelihood that a request originates from a bot.
I get this some times but goes away after a few minutes. As ddshd mentioned the cause as well.
Just to make sure: are you putting '/api' after the web url in mobile app? Ex. Web url= http://somedomain.com:2283, mobile app url= http://somedomain.com:2283/api
yes it's forwarded that way to the main url
it feels a bit like this message is the blocking message

That page means cloudflare thinks ur a bot, the message in the app is just the html content of that page
Follow this see if it fixes it
Ooh it works like a charm 🙏 Thank you so much @ddshd
Which exemption did you put in?
Does that seem correct @meh ?
I won't be able to test it till tomorrow but will let you know
You should probably put some management score test fyi
Cloudflare network is always probed to bring things to ddos or get into
that is a paid feature, i'm using the free tier 😦
Putting the score check is a paid feature?? Hmm

What about
bot_management.score
(cf.bot_management.score lt 30 and not starts_with(http.request.uri.path, "/api"))
for example
Oh
Rip
yup D:
Sorry i have paid plan so I didn’t realize they had those paywalled
no worries man
was already a great help to identify it
Appreciate the help 🙏
Found a free version to block bots
Might be easier to just whitelist immich app’s user agent if it has one
If not we should def try to add one
Yes