Re: how to block more then 10,000 site with SQUID ?
Luca Ferrari <[email protected]> Thu, 29 Jul 2004 10:02:46 +0200
| Newsgroups | org.kernel.vger.linux-config,org.kernel.vger.linux-admin |
|---|---|
| Message-ID | <[email protected]> |
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, [email protected]