Hi Charlie,
You can use something like this:
Create two files in your /usr/local/squid/etc called "denied_url" and
"allowed_url" for example. In the denied_url file you put the urls that you
want to block and in the allowed_url you can put exceptions. You also can
use key words instead of complete urls.
In your squid.conf do the following:
acl denied_url url_regex "/usr/local/squid/etc/denied_url"
acl allowed_url url_regex "/usr/local/squid/etc/allowed_url"
...
http_access allow allowed_url
http_access deny denied_url
You can also use the deny_info tag to use a especific error message with
this blocked sites.
Best Regards and a Happy new year.
Fábio Baptista.
-----Mensagem original-----
De: Charlie Grosvenor [mailto:Charlie@cgrosvenor.freeserve.co.uk]
Enviada em: Quarta-feira, 29 de Dezembro de 1999 18:35
Para: squid-users@ircache.net
Assunto: Filtering
Is there any way to filter out a list of sites using squid
eg have a text file with a list of sites that are not allowed in and tell
squid to use this file
Received on Thu Dec 30 1999 - 05:19:41 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:08 MST