Squid helper handling squidguard blacklists written in python
Go to file
2016-02-03 21:53:36 +01:00
.gitignore py-squid-blacklists: various updates 2016-02-03 21:31:33 +01:00
config.py.sample py-squid-blacklists: various updates 2016-02-03 21:31:33 +01:00
LICENSE Initial commit 2016-01-24 19:05:59 +01:00
py-squid-blacklists.py py-squid-blacklists: various updates 2016-02-03 21:31:33 +01:00
README.md update README.md 2016-02-03 21:53:36 +01:00

py-squid-blacklists

Squid helper handling squidguard blacklists written in python

  • Only supports domains blacklists actually (ie : google.com, www.google.com, api.google.com, etc.)
  • All specified blacklists are loaded in RAM
  • 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