linux poison RSS
linux poison Email

Block mp3, mpg, mpeg, exe files using Squid proxy server

First open squid.conf file /etc/squid/squid.conf:

# vi /etc/squid/squid.conf

Now add following lines to your squid ACL section:

acl blockfiles urlpath_regex “/etc/squid/multimedia.files.acl”

Now create the the file

# vi /etc/squid/multimedia.files.acl

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

Save and close the file and Restart Squid:

# /etc/init.d/squid restart



2 comments:

Anonymous said...

great tutorial, thank you before.

I do same like you done and it work as well for *.exe files but we can still download *.mp3 files, could you help me about it?

Mitesh Shah said...

this is b'coz author foeget to add the following line
http_access deny blockfiles

Post a Comment

Related Posts with Thumbnails