By using the urlpath_regex (or url_regex) ACL type.
However, this only looks at the URL, so if a site uses .exe for CGI
programs on a Windows server then these will most likely also match.
What you can do there is to add a second list of exclusions which are
allowed even thou it looks like an exe file..
In the upcoming Squid-2.5 release you have additional tools to block by
content-type, not only URL.
Regards
Henrik Nordström
Squid Hacker
John Szkudlapski wrote:
>
> Hi there
>
> just looking for some advice on how to block downloads of certain file
> extensions, I have the types stored in file
> "/etc/squid/access/extension.dat"
>
> one of these is .exe
>
> how do i get the server to deny the downloading of them, but if i go to a
> site with .exe in it, for example http://www.exeter.net/ or say a web
> site that uses .exe instead of .html or .asp, it will still allow it?
>
> Hope this is possible???
Received on Wed Sep 26 2001 - 10:54:26 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:30 MST