squid.conf
Table of Contents

squid.conf

acl denied_domains dstdomain "/etc/squid/denied_domains.acl"
acl filetypes urlpath_regex -i "/etc/squid/filetypes.acl"
acl url_ads url_regex "/etc/squid/banner-ads.acl"
acl students src "/etc/squid/student_domains.acl"

http_access deny url_ads
http_access deny students filetypes
http_access deny denied_domains

#block youtube video
acl deny_rep_mime_flashvideo rep_mime_type video/flv
http_reply_access deny deny_rep_mime_flashvideo

http://wiki.squid-cache.org/KnowledgeBase/BlockingMimeTypes
http://www.debian-administration.org/articles/399

/etc/squid/denied_domains.acl

.sex.com
.hackers.com
.xemacs.org

/etc/squid/denied_filetypes.acl

\.(exe)$
\.(zip)$
\.(mp3)$

/etc/squid/denied_ads.acl

/adv/.*\.gif$
/[Aa]ds/.*\.gif$
/[Aa]d[Pp]ix/
/[Aa]d[Ss]erver
/[Aa][Dd]/.*\.[GgJj][IiPp][FfGg]$
/[Bb]annerads/

/etc/squid/student_subnets.acl

192.168.10.0/24
192.168.11.0/24
192.168.12.0/24
192.168.13.0/24

http://mkeadle.org/index.php?p=14
http://www.linux-faqs.com/Forum/viewtopic.php?t=28
Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License