Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RES: Filtering

0 views
Skip to first unread message

Fabio G. Baptista

unread,
Dec 30, 1999, 3:00:00 AM12/30/99
to
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:Cha...@cgrosvenor.freeserve.co.uk]
Enviada em: Quarta-feira, 29 de Dezembro de 1999 18:35
Para: squid...@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


0 new messages