Re: [squid-users] FW: except one

From: Christoph Haas <[email protected]>
Date: Wed, 15 Oct 2003 10:53:26 +0200

On Wed, Oct 15, 2003 at 10:41:59AM +0200, Polenyik Tibor wrote:
> I denied to everyone to download *.exe.
> It works, but I'd like to deny everyone except one how can I do this ?

You need to "and" the ACLs - like this:

acl exefile url-regex *\.exe(\?|$|\#) (if I remember correctly)
acl exceptionuser proxy_auth polenyik
http_access deny exefile !exceptionuser (deny if both ACLs match)

If you don't use authentication you could as well define
"acl exceptionuser src <ip-address-of-polenyiks-machine>"

Is that what you were looking for?

 Christoph

-- 
~
~
".signature" [Modified] 3 lines --100%--                3,41         All
Received on Wed Oct 15 2003 - 02:53:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:30 MST