Search squid archive

ACL help: blocking non-html objects from particular domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm attempting to use ACLs to block non-HTML objects from particular
domains. i.e: users should be able to see the html, but not the images.

Tried various forms of and always end up will all or nothing:

acl suspect-domains dstdom_regex "/etc/squid/suspect-domains.acl"
acl ok-mime-types rep_mime_type -i ^text/html$
acl ok-mime-types rep_mime_type -i text/html

# 1
#http_access allow ok-mime-types
#http_access allow suspect-domains

# 2
#http_access allow suspect-domains ok-mime-types

# 3
#http_access deny suspect-domains !ok-mime-types
#http_access allow suspect-domains

http_access deny all


What am I missing here?
-- 
Craig Skinner | http://www.kepax.co.uk | aye-right@xxxxxxxxxxx

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux