[squid-users] ACL help: blocking non-html objects from particular domains

From: Craig Skinner <craig.skinner@dont-contact.us>
Date: Sat, 13 Oct 2007 18:01:40 +0100

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@kepax.co.uk
Received on Sat Oct 13 2007 - 11:01:55 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT