Question

Is there a way to proxy external images w/o downloading them at all?

My idea is to provide a script (i.e. proxy.php) which I could use in an src attribute like this:

<img src="http://myseconddomain.com/proxy.php?img=http://example.com/externalimage.png">
Was it helpful?

Solution

You'd have to download them atleast once. Once that's done, you can cache them and serve the images off the cache. This is a subset of a more general caching proxy.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top