Re: [squid-users] Certain group of users to certain URLs

From: Muthukumar <kmuthu_gct@dont-contact.us>
Date: Tue, 25 May 2004 16:00:43 +0530

> 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
Received on Tue May 25 2004 - 04:30:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:02 MDT