Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Squid Blocking .ZIP


    I am confused with my squid configuration because
    i set to allow ZIP file but there is one workstation or PC1 with the IP
    address of has not authorized to download ZIP File in any
    Website address that he/she accessed it but when i checked on the Log
    File I found this
    about applicatio/x-zip-compressed

    in my conf file:
    acl zipblockfile urlpath_regex "/etc/squid/listed/zipblock.acl"
    http_access allow zipblockfile !pc1

    1341368651.836 22599 TCP_MISS/200 2469901 GET
    DIRECT/ application/x-zip-compressed

    is there a way to block it or my conf file is not correct.


  2. #2
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    London, England
    I think you would be better off writing a deny policy rather than allowing "everything but". The following should do what you want:
    acl banned_clients src pc1
    acl zipblockfile urlpath_regex "/etc/squid/listed/zipblock.acl"
    http_access deny banned_clients zipblockfile

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts