Showing posts with label SQUID. Show all posts
Showing posts with label SQUID. Show all posts

17 January 2008

How to block mp3, mpg, mpeg, exe files in Squid proxy server

1.Open the squid configuration file in /etc/squid/squid.conf

2.Add a acl to block the required filetypes

acl blockfileset urlpath_regex "/etc/squid/block.acl"
http_access deny blockfileset


3.Create the file block.acl and update the below contents

\.[Ee][Xx][Ee]$
\.[Aa][Vv][Ii]$
\.[Mm][Pp][Gg]$
\.[Mm][Pp][Ee][Gg]$
\.[Mm][Pp]3$