This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

squid rules

is it possible  to add  an own regular expression acl for all/some machines like  :

acl     stopfiles    urlpath_regex -i \.exe$ \.exe.*$ \.zip$ \.zip.*$ \.msi$ \.msi.*$ \.ace$ \.ace.*$ \.gz$ \.gz.*$ \.tar$ \.tar.*$ \.arj$ \.arj.*$ \.lha$ \.lha.*$ \.cap$ \.cap.*$ \.mp3$ \.mp3.*$ \.eml$ \.eml.*$ \.doc$ \.doc.*$ \.xls \.xls.*$ \.ppt$ \.ppt.*$ \.dot$ \.dot.*$ \.mdb$ \.mdb.*$ \.ocx$ \.ocx.*$ \.avi$ \.avi.*$ \.mov$ \.mov.*$

http_access    deny    stopfiles


This thread was automatically locked due to age.
Parents
  • It should be possible to add it to the content removal ection of the http proxy.

    You will need surf protection switched on, and a profile that only applies to the machines you want to apply the rule for.
  • it doesn`t work, and i can't find anything in the manuals, but they told something about  a "filtering framework"

    # Please refer to the manual to learn more about regular
    # expressions and how they can be used in the content
    # filtering framework.
  • Hi there, 

    just add your regular expression to the blacklist one per line:

    \.exe$
    \.exe.*$
    \.zip$
    \.zip.*$
    \.msi$
    \.msi.*$
    \.ace$
    \.ace.*$
    \.gz$
    \.gz.*$
    \.tar$
    \.tar.*$
    \.arj$
    \.arj.*$
    \.lha$
    \.lha.*$
    \.cap$
    \.cap.*$
    \.mp3$
    \.mp3.*$
    \.eml$
    \.eml.*$
    \.doc$
    \.doc.*$
    \.xls
    \.xls.*$
    \.ppt$
    \.ppt.*$
    \.dot$
    \.dot.*$
    \.mdb$
    \.mdb.*$
    \.ocx$
    \.ocx.*$
    \.avi$
    \.avi.*$
    \.mov$
    \.mov.*$

    This will block every Request where these entries match.

    regards
    Gert
  • ok this works! thx
    but..to use this way i need a cobion license..or not?
Reply Children