> I would like to allow access to the internet for a certain group of users to
> certain URLs.
> For example Users (John, Maria, Paul) to access only yahoo.com AND cnn.com.
> Nothing else.
> All the other users must have access to the whole internet.
> Could you provide me an example?

Gather user names in a file as like
    /usr/local/squid/etc/usename.txt
    ------------
    John
    Maria
    Paul
    ------------

Collect accessable url's in a file as like
    /usr/local/squid/etc/url.txt
    ----------
    .yahoo.com
    .cnn.com
    ------------

Specify the acl and http_access rules as in squid.conf ,

    acl group1 proxy_auth "/usr/local/squid/etc/username.txt"
    acl url dstdomain "/usr/local/squid/etc/url.txt"
    http_access deny group1 !url

Regards,
Muthukumar.






---
===============  It is a "Virus Free Mail" ===============
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004

Reply via email to