Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laracastsluvr's avatar

Load remote images from other domains

Hello,

What is the name of the technique used by Gmail, when handling images in emails. The remote images are loaded through a google owned domain, something similar to googleusercontent.com/remote_url=https://remote-domain.tld/image.jpg I need something similar because I'm handling images in the back-office of a laravel app, that are hosted by clients on their servers, but looking at the access.logs generated in those remote web-servers, the full url of the back office page that requested the image is recorded. It looks like a security issue that needs to be addressed and I'm guessing google is doing it for security concerns

0 likes
2 replies
Snapey's avatar

They still need access to the image - which is no different to you just putting the full image url in the view.

They proxy the image so that they can (for instance) serve lower resolution images for mobile devices

laracastsluvr's avatar

@Snapey If I had a similar mechanism to google's tho, I could put the url of that mechanism in the src of an image, while the remote web server will record on its logs the mechanism's ip and domain/path etc. They will not see the backoffice's ip, domain and path. Btw, the backoffice is allowed by their clients to pull the images, they just dont want the backoffice's ip and routes show up in the web server logs of their clients.

Backoffice <-> mechanism <-> remoteImg1, remoteImg2, etc

Please or to participate in this conversation.