Menu

#601 Block domain/path based on referer

future
closed
None
5
2020-06-09
2018-03-05
P. Zaccaria
No

Previously it was possible to remove scripts or images from other domains, only on specific pages, by using filters, e.g.:

+filter{no_facebook}
.domain1.com
.domain2.com

FILTER: facebook
s/facebook/===/g

Since https is getting more and more common, this is no longer possible.

A simple workaround would be to block these scripts based on the referrer.
The referrer can be detected using taggers, but if I got it correctly, TAG cannot be combined with +block, just with +filter.

It would be great to be allowed to do something like this:

+block{no_facebook}
referrer_is: .domain1.com

Discussion

  • Fabian Keil

    Fabian Keil - 2018-03-08

    Tags can be used with any action including blocks.

    If you enable the referer client-header-tagger for
    all requests you can then block based on the created tags.

    Note that most browser nowadays provide to Referer
    for CONNECT requests used for https.

     
  • Fabian Keil

    Fabian Keil - 2020-06-09
    • status: open --> closed
    • assigned_to: Fabian Keil
     
  • Fabian Keil

    Fabian Keil - 2020-06-09

    Privoxy 3.0.29 (not yet released) supports https inspection.

     

Log in to post a comment.

MongoDB Logo MongoDB