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
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$
No comments:
Post a Comment