Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify Images With An Http Proxy

April fools is coming up. I'd like to play this prank where we use an http proxy to modify images as they come through the proxy. I've been told that there are scripts/add-ons to ISA/Squid that can do this but I haven't been able to find much on my own.

Ideally, we'd like to superimpose another image on top of every .gif/.jpeg/.png that comes through the proxy. The only problem is I have no idea how to do this!

If I had my choice I'd rather do it with ISA than Squid, but beggars can't be choosers. If you can think of another way I'm open to that too!

like image 464
Tyler Avatar asked Feb 14 '09 09:02

Tyler


Video Answer


2 Answers

Look here: The Upside-Down-Ternet ;)

You would need to replace the call in the script to add your additional image. ImageMagick would be a good tool for that.

like image 81
Dirk Vollmar Avatar answered Oct 03 '22 08:10

Dirk Vollmar


I also dont have much idea, but i have a concept you can try.

Get a caching proxy, make it cache all pages that you want to prank.

then somehow manipulate the cache, like if the proxy caches test.jpg, go into its cache, and replace that test.jpg with another picture that is almost similar in size and dimensions.

Then after you gotta make the proxy not update its cache for a while.

Well its just a concept, hope it works ;)

like image 43
tHeSiD Avatar answered Oct 03 '22 06:10

tHeSiD