I need an HTTP proxy which forwards all requests without change, except for some small dynamic subset of URLs, for which content will be substituted for something else.

So for example if you go to <http://www.google.com/> the proxy would substitute something funny for Google logo, but leave all other traffic unaffected, including other traffic to www.google.com servers.