Re: Cascading Rules
Fabian Keil via Privoxy-users <[email protected]> Thu, 30 Jan 2025 14:45:01 +0100
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2018377968374138744== Content-Type: multipart/signed; boundary="Sig_/kJiGxGDC6UiRt_YXgkrpeX9"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/kJiGxGDC6UiRt_YXgkrpeX9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thibault Bartolone via Privoxy-users <[email protected]> wrot= e on 2025-01-30 at 10:48:54: > I didn't find an explicit answer in=C2=A0 the documentation or online, th= at's > why I'm asking. Maybe it's because I don't know what string to search. > What I want is allow ONE specific Google Drive and nothing else >=20 > The problem is that you cannot do just that: > allow drive.google.com/drive/folders/XYZ1234 > Because for some reason, accessing this drive requires access to some oth= er > drive.google.com URIs, like for example=C2=A0drive.google.com/_/ >=20 > So my question is: is it possible to do the following? > block / > allow drive.google.com/* > block=C2=A0drive.google.com/drive/* > allow=C2=A0drive.google.com/drive/folders/XYZ1234 > I would call that cascading rules, hierarchy rules or nested rules. Quoting the documentation: | To determine which actions apply to a request, the URL of the request | is compared to all URL patterns in each "action file". Every time it | matches, the list of applicable actions for the request is incrementally | updated, using the heading of the section in which the pattern is located. | The same is done again for tags and tag patterns later on. |=20 | If multiple applying sections set the same action differently, the last | match wins. If not, the effects are aggregated. <https://www.privoxy.org/user-manual/actions-file.html#ACTIONS-APPLY> Try something like: {+block{Only Google drive XYZ is permitted}} / {-block} drive.google.com/ {+block{Forbidden Google drive}} drive.google.com/drive/ {-block} drive.google.com/drive/folders/XYZ1234 Fabian --Sig_/kJiGxGDC6UiRt_YXgkrpeX9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmebgl0ACgkQaRgikYui NxwGzxAAkTGulDwoPctFn0U0csgJeXl1io/khm9JcvoNt0iBAq3fkUHYMNwViIF2 SnkbSj3I0BM11I3ZzSMagQfzW7mzUiEaZtCTqvLVCViqRCY9JADPQipiUiqqdBxr 27+8ZjGQNWfkAVZhxYckh+oBMnQWOAH0ZNTHMt7I4GLntD8t8FMP5X7ifiv0tyCD bf9p5S+roGsHUSWthSSlqSFYFr1+ko9XqwDJo6PRzh1cSNLlc2mWzUwdI/dxvyZQ LfcCBvZtAuf7F3vMOyP25gAv9LF65s3DmjIpHZcFiktEjNcj3YovZHrufC2gPair imWFHh0iXP8UZpzT7Hn4mjT+7+pUJgKTKkzXuLsX5gx421uYuKbLW2qDzMiLZumK OjU11mn3JHWMdCxIhOlJdnLkEvF3aKhspD3BL4dkj41I6yygHnMHoXe0+YHPDPTu QmPQ6/8VbivfcvsFOYXciTxQlwNvvp37CiEglQ4X+pMmSzt2/rzjmB9LwZbP0rI2 rSNiwejFK4ty3D943KXhsX5qE3Mdp4BceL91rNtt6Oat9fcDz71X0omf/4VRy3t8 0sqd2iQ+U4PXHBUNlcWow/sQzbaMSvCHJAZSZAk6tSn2jbH2GLIUDiGuTUzHyegW OI4TmUATCg+7mmtAmRBKs+mnONoHq3DjHBeXwRpcHr9JnuwbUlI= =SD0X -----END PGP SIGNATURE----- --Sig_/kJiGxGDC6UiRt_YXgkrpeX9-- --===============2018377968374138744== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Privoxy-users mailing list [email protected] https://lists.privoxy.org/mailman/listinfo/privoxy-users --===============2018377968374138744==--