Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #195775

Re: "pre-treating" documents from certain remote URLs before a web browser renders them

From Celejar <celejar@gmail.com>
Newsgroups linux.debian.user
Subject Re: "pre-treating" documents from certain remote URLs before a web browser renders them
Date 2018-05-15 19:30 +0200
Message-ID <vPLVT-7jj-9@gated-at.bofh.it> (permalink)
References <vPvR7-6eF-1@gated-at.bofh.it> <vPGMx-484-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 15 May 2018 14:52:16 +0300
Reco <recoverym4n@gmail.com> wrote:

> 	Hi.
> 
> On Tue, May 15, 2018 at 12:58:04AM +0000, davidson wrote:
> > I would like to launch a web browser[3], browse pages at domain X, and
> > know that when I go to http://X/page, or https://X/page, etc, the
> > browser will render not the page served from the remote site, but will
> > render instead that page as transformed by the appropriate stylesheet
> > tailored for pages from X.
> 
> I can think of two things that can do the job:
> 
> 1) HTTP proxy.
> 
> Squid may be able to pull the trick you want, but I'm unsure of that.
> Nginx (configured as a conventional proxy) can do it via
> mod-http-xslt-filter, but writing nginx.conf for this will be a PITA.

You want privoxy. Insofar as you can script your transformation,
configure privoxy, using its "external-filter" action, to apply your
script to the appropriate pages:

https://www.privoxy.org/user-manual/actions-file.html

[section "8.5.14. external-filter"]

Celejar

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"pre-treating" documents from certain remote URLs before a web  browser renders them davidson <davidson@freevolt.org> - 2018-05-15 02:20 +0200
  Re: "pre-treating" documents from certain remote URLs before a web  browser renders them <tomas@tuxteam.de> - 2018-05-15 08:40 +0200
  Re: "pre-treating" documents from certain remote URLs before a web  browser renders them Reco <recoverym4n@gmail.com> - 2018-05-15 14:00 +0200
    Re: "pre-treating" documents from certain remote URLs before a web  browser renders them Celejar <celejar@gmail.com> - 2018-05-15 19:30 +0200
  Re: "pre-treating" documents from certain remote URLs before a web  browser renders them "Alexander V. Makartsev" <avbetev@gmail.com> - 2018-05-15 14:30 +0200
  Re: "pre-treating" documents from certain remote URLs before a web  browser renders them Dan Ritter <dsr@randomstring.org> - 2018-05-15 23:20 +0200
  Re: "pre-treating" documents from certain remote URLs before a web  browser renders them davidson <davidson@freevolt.org> - 2018-05-17 02:20 +0200
    Re: "pre-treating" documents from certain remote URLs before a web browser renders them Kushal Kumaran <kushal@locationd.net> - 2018-05-17 04:40 +0200
      Re: "pre-treating" documents from certain remote URLs before a web  browser renders them <tomas@tuxteam.de> - 2018-05-17 09:00 +0200
        Re: "pre-treating" documents from certain remote URLs before a web  browser renders them Celejar <celejar@gmail.com> - 2018-05-17 14:00 +0200
          Re: "pre-treating" documents from certain remote URLs before a web  browser renders them <tomas@tuxteam.de> - 2018-05-17 14:00 +0200
        Re: "pre-treating" documents from certain remote URLs before a web  browser renders them Reco <recoverym4n@gmail.com> - 2018-05-17 14:50 +0200
          Re: "pre-treating" documents from certain remote URLs before a web  browser renders them <tomas@tuxteam.de> - 2018-05-17 16:50 +0200

csiph-web