From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ferrari Subject: Re: how to block more then 10,000 site with SQUID ? Date: Thu, 29 Jul 2004 10:02:46 +0200 Sender: linux-config-owner@vger.kernel.org Message-ID: <200407291002.46585.fluca1978@infinito.it> References: <20040729124032.0EAC.SAVAGE-GARDEN@hanikamail.com> <200407290932.41128.fluca1978@infinito.it> Reply-To: fluca1978@infinito.it Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200407290932.41128.fluca1978@infinito.it> Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Cc: linux-config@vger.kernel.org On Thursday 29 July 2004 09:32 Luca Ferrari's cat walking on the keyboard wrote: > On Thursday 29 July 2004 08:40 Kev's cat walking on the keyboard wrote: > > hi, > > > > i have a site list that i need to block with squidl this list is on a > > TXT files, it got more then 10000 domains, how can i do this with SQUID > > ?? > > Hi, > I've done something similar adding a line like the following in the > squid.conf, at the acl section: > > acl pericolosi urlpath_regex "/vol1/squid/etc/files_pericolosi.acl" > > where /vol1/squid/etc/files_pericolosi.acl is a text file that contains the > list of sites/domains you want to block. > Hope this helps. Ops! I cut and paster the wrong line! The acl type must be "dstdomain", like the following one: acl pericolosi dstdomain "/vol1/squid/etc/files_pericolosi.acl" and you have to specify to deny the above acl with http_access deny pericolosi Luca -- Luca Ferrari, fluca1978@infinito.it