Gmail images broken

I run a self hosted Bitwarden instance. Whenever it sends an email to Gmail, the links come back as broken.

103260539-f9830480-4995-11eb-8069-d79817d37f77

Image URL is showing as

https://ci4.googleusercontent.com/proxy/4YDtCbuXg77_Fw360_0wSSovhlVxUk-w3-gPv6IrTPdaxntxv4vCvPHbYFMJ9FRoT2Rzxbo5q7V6m0zQuSlOFVLV1QuBwL1wUA=s0-d-e1-ft#https://bitwarden.mydomain.com/bwrs_static/logo-gray.png

If I go to https://bitwarden.mydomain.com/bwrs_static/logo-gray.png it shows as intended.

Hotlink protection is already disabled in Cloudflare, so I’m not quite sure what steps I need to take to resolve. Could it be a firewall rule that’s stopping the Google bots from fetching the image? If so, how best to check?

Further info:

Is there any way to just allow google image bots, but not others? Would allowing the ASN be suitable or no?

It tells you exactly what’s blocking it: A Firewall Rule named “Block bots.”

I don’t know what your rule looks like, but if you add something like: User Agent does NOT contain googleimageproxy, that should fix it.

1 Like

Ah perfect, thank you!

Aye, I was aware of what was blocking it, but I’m a bit green with which option to have chosen to allow just that particular one.

All good now, appreciate it!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.