Gestore Mailing List wrote:
>
> Hi all,
> does someone think that is possible to choose, based on the extesion,
> if the ftp is allowed or denied?? i would liek to permit only the download
> of .pdf and .doc files trough squid.
> I think that it is possible with some sort of url_regex rules
> but i have not idea how to do that.
acl ftp proto ftp
alc documents urlpath_regex -i \.pdf$ \.doc$ /$ \.pdf;type=.$
\.doc;type=.$
http_access deny ftp !documents
This denies all but directory listings (URLs ending in \), .pdf and .doc
files. The ;type= variants is to allow the usage of the download/view
icons on the right of the file information in Squid ftp directory
listings.
-- Henrik Nordstrom Spare time Squid hackerReceived on Tue May 11 1999 - 11:33:05 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:15 MST