[Privoxy-users] Help with setting background image

Tim Magee lists at qkhx.uk
Tue Aug 24 08:44:18 UTC 2021


Hello,

I couldn't resist a bit of a dabble myself. I can confirm that Ian's
suggestion to use a full URL works. I have an Apache server on the
machine that's running Privoxy, so I just hand off to that:

body { background-image: url(http://<MY-HOST>/back.jpg); ...

Before that I tried using a full URL but with config.privoxy.org as the
host, like:

body { background-image: url(http://config.privoxy.org/back.jpg); ...

That didn't work because as it turns out the CGI server uses a table
to restrict the set of resources it serves (a good practice).

Working round that would need a new entry in the resources table in
cgi.c, plus a function to handle the resource. I think it would be an
easy change -- the Privoxy code is unusually readable -- but I have
sooooo many other fish to fry, plus when I build Privoxy from source
(both upstream and the Debian source package) it segfaults on me during
edit actions :(

Good luck,
Tim

From Ian & Sugarcoded:

> From: "Ian Silvester" <iansilvester at fastmail.fm>
> 
> Got it :o(. I think hosting the graphic on some site would seem to be
> the only option, which does feel pretty clunky. 
> 
> On Tue, 24 Aug 2021, at 00:04, sugarcoded at tutanota.com wrote:
> > Nope........ :( The error is: "GET 
> > http://127.0.0.1/etc/privoxy/templates/img.png 
> > net::ERR_CONNECTION_REFUSED" (I know putting the custom templates
> > there could get removed if there is an update). I also tried using
> > the port number, localhost and even the file:/// protocol. I guess
> > the final answer would be it wont work unless I pull it from a
> > site? I'm guessing just changing some Privoxy code or running a
> > custom script isn't an option either.

-- 
Tim Magee


More information about the Privoxy-users mailing list