Hi,

While there is already conkeror-specific advice, I also know some less
browser-specific solutions:

On Thu, Feb 02, 2012 at 09:58:44AM +0100, Konrad Hinsen wrote:
> Is there some hook that would make it possible to rewrite all URLs before
> downloading their content?

Well, what came to my mind just after reading the subject was the
HTTPS Everywhere[1] Firefox extension which just works fine with
conkeror. It's a plugin which rewrites URLs according to some
configuable rules from http to https (and in some cases also parts of
the remainder of the URL) before the access happens.

  [1] https://www.eff.org/https-everywhere

> The reason I would like to have such a feature is that I can access
> various scientific journals only through my library's proxy.

We have exactly the same problem (eJournals just via proxy) at work.
We solved that via a dynamic proxy configuration:

  http://nic.phys.ethz.ch/proxy.pac
  https://wiki.phys.ethz.ch/readme/how_to_configure_webbrowsers
  https://en.wikipedia.org/wiki/Proxy.pac

In our case we configure the domains for which the proxy should be
used via DNS lookups in the domain fp.phys.ethz.ch (fp = force proxy),
so people don't have to download a huge proxy.pac (list of domains
currently 72kB) everytime. The zone file for this domain has entries
like these:

; pure IP addresses -- prepend ip.
ip.130.199.216.xx       IN A 127.0.0.1
ip.131.220.172.yy       IN A 127.0.0.1
[...]

; regular host names
aac.asm.org     IN A 127.0.0.1
aanda.org       IN A 127.0.0.1
[...]

To find out how to configure conkeror to use such a file, configure a
Firefox and check about:config to find the proper values (proxy type
is unfortunately a numerical value).

> The proxy URL can be constructed by simple rules from the original
> journal URL.

So it's no real HTTP Proxy but some CGI or PHP script which has to be
used?

In that case I'd rather look at how the HTTPS Everywhere plugin is
build.

Hope this helps, too.

                Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.asciiribbon.org/              | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to