Squid does not know the difference between downloading or displaying. In
both cases the content is sent to the requestor in exacly the same way,
as a response to a request looking exacly the same way.
What you can do is to require authentication for accessing certain URL
patterns, such as
ftp://.*
\.exe$
\.zip$
\.gz$
\.bz2$
\.mp3$
...
See http_access, acl url_regex, acl proxy_auth, authentication_program.
In Squid-2.5 there will also be access controls that can look into the
reply from the server (i.e. to allow matching mime types, reply sizes
and such), but I don't think it is a very good idea to use proxy_auth in
such a configuration without also requiring it in http_access before the
request is sent to the origin server..
-- Henrik Nordstrom Squid hacker senthil wrote: > > Hi All > > I am having a peculiar situation which requires me to give a passwords only > for downloading. The problem here is I dont use any sort of ACL groups or > anything. Is it possible to enable the squid to ask for a password before it > lets any one in my network to download some files. Or should I use some > other sort of patches or some thing. Please can anyone advise me about this. > I want to do this to prevent my users from downloading huge files which is > chocking my bandwidth. > > regards > > senthilReceived on Thu Apr 12 2001 - 13:37:45 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:17 MST