Re: Whitelisting based on client IPs
Fabian Keil <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Message-ID | <[email protected]> |
Father Vlasie <[email protected]> wrote: > I am new to Privoxy and I am trying to use it to replace a perl-based > custom whitelisting system. > > I have read a lot of the documentation but I could not quite figure out > how to do what I need which is to whitelist websites based on the IP > address of the client. > > I have tried adding the following code to the default.action file but it > just seems to block everything without making an exception for > 10.10.20.3 to reach wikipedia.org or 10.10.20.5 to reach m-w.com. > > 8<----8<----8<----8<----8<----8<----8<---- > > {+block{This domain is not in the whitelist.}} > . > +client-header-tagger{client-ip-address} The line above doesn't seem to be part of an action section. You may want to use: {+client-header-tagger{client-ip-address}} / instead. > {-block} > .wikipedia.org/. > TAG:^IP-ADDRESS: 10\.10\.20\.3$ > {-block} > .m-w.com/. > TAG:^IP-ADDRESS: 10\.10\.20\.5$ > > Any help is greatly appreciated! Note that tag and URL patterns aren't combined with an "and" condition. Sections are enabled if any pattern matches. You may want to use acls instead: https://www.privoxy.org/user-manual/config.html#ACLS Fabian _______________________________________________ Privoxy-users mailing list [email protected] https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAlp9fTwACgkQaRgikYui NxyQfw/+N40fTiT8crOPwIy8P350X+tq/NyqFHPhZTI19hFrCBxDi91SeRliOrDu fqs3qq/aLMby99hD8tVgdiAFmCEIGGNg7/Ml4JPKhrDYG8uD/uYVvEd+VJBY9F7j mHz90WcoIigyALXeCT1HJdqMT6YEitU65ZdTcNmd60tAaFx1hOLu+0nSTjgYt+y4 4t41NYR8teHxfZj1YDHO3rOAJp6tL17UXmcTHmrn5vZLC7A2pRWSpSFR9S4ZJV98 zN8w5bCjB6O02Gi54Hka8UNBwdrvLn7BMYxRxAFiDO3PbUQdgBiY3s4YhQYbMwqT Hh+3mOBPyi12prpc7NgFQ6+D4wQ46r8D79WVRMzOKGP+UEAJfjBptWHadzh/PBem xs11D6xVe3jgcmGvyWkE+2TAAIg1zGkEPasIbysVuoMIlDVzqb6H8tl1y/vJs7MM YwhWSkHXNdgFQ4lYhAPFPlsgY9M+JsQBMbiIZ17hVHY2lvTcXRZ303ptPNIQq9H1 H9od8kIIIwA9Tq0PpCUhQNKJOnY4L35qgpcpdYiYZp3g6K8SLI70alkyVEstayYb d4v34srTug0vjx74SM08LBAzBqeksHC6A1oMLvfHX/wnm1fIyttOi+gMduViiWHE ZgovsLfNPsp4vHyUMHsnPtnYRmnLuaboz7B2UxTHaHZkn7jPlSA= =kwYY -----END PGP SIGNATURE-----