From 4aa668b6a7d51f729cc88e6b2616fa0fb4a94f85 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 3 Feb 2016 21:53:36 +0100 Subject: [PATCH] update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index ffdd550..596a589 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,14 @@ Squid helper handling squidguard blacklists written in python * Usable as an external acl plugin of squid * Written because of poor developpement on squidguard and bad support of blacklists files using squid3 * Tested on Debian 8 / python 2.7.9 + +## Usage + +Add this configuration to squid.conf : +``` +external_acl_type urlblacklist_lookup ttl=5 %URI /usr/bin/python /usr/local/blacklists/py-squid-blacklists.py +... +acl urlblacklist external urlblacklist_lookup +... +http_access deny urlblacklist +```