Adding acls in squid



  • How to add manual rules in squid ? i need to add a block rule for file types i have created a file like

    .[Ee][Xx][Ee]$
    .[Ee][Xx][Ee][??]$
    .[Aa][Vv][Ii]$
    .[Aa][Vv][Ii][??]$
    .[Mm][Pp][Gg]$
    .[Mm][Pp][Gg][??]$
    .[Mm][Pp][Ee][Gg]$
    .[Mm][Pp][Ee][Gg][??]$
    .[Mm][Pp]3$
    .[Mm][Pp]3[??]$
    .[Ww][Aa][Vv]$
    .[Ww][Aa][Vv][??]$
    .[Oo][Rr][Rr][Ee][Nn]$
    .[Oo][Rr][Rr][Ee][Nn][??]$

    and add

    acl blockfiles url_regex "/var/squid/acl/blocks.files.acl";
    http_access deny blockfiles;
    in squid custom options and restarted squid but squid not working, any idea??/



  • i got a solution to block file types using squidguard Destination -> expressions ->.mp3|.exe|.avi|.mpg|.mpeg|.mp4|.3gp

    its working fine :)



  • Can I block "https" domain please?


Locked