ACL restrict users to domains from file... and even more

From: Mark Seuffert (Pirates) <captain@dont-contact.us>
Date: Mon, 14 Dec 1998 14:18:56 +0100

Hi,
how can I say local hosts (192.168.1.0/24) can have only access to defined
domains in internet? But special local hosts (192.168.2.0/24) should still
have unlimited access. Also I wanna define those allowed domains in a file.

With help of the squid-documentation and older postings.... I guess this
is okay:

acl specialhosts src 192.168.2.0/255.255.255.0
acl localhosts src 192.168.1.0/255.255.255.0
acl employee dstdomain "/etc/allowed.domains"
acl all src 0.0.0.0/0.0.0.0
http_access allow specialhosts
http_access allow localhosts employee
http_access deny all

And the file /etc/allowed.domains contains something like:
hospital.com
medical.com
doctors.org

Hmmm, does this work or is there a better way to achive this?
How can I specify allowed subdomains or only allowed URL from a domain
(for example www.playcom.com/jokes_about_nurses.html)?
Examples or hints are welcome, thx!

-- 
M a r k   S e u f f e r t                             captain@pirate.de
Pirates Communication                              http://www.pirate.de
Received on Mon Dec 14 1998 - 06:41:57 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:39 MST