Squid Rules Block Files URL

From MS Computech
Revision as of 12:55, 24 March 2011 by Snifer (talk | contribs)
Jump to: navigation, search
#============================================================$
#                      DELAY_POOLS
#============================================================$

acl allow_client src 192.168.1.100
#acl limit_downloads url_regex -i .exe .rar .tar .zip .iso .avi .001 .002 .003 .004 .005 .006 .007 .008 .009 .010
#delay_pools 1
#delay_class 1 1
#delay_parameters 1 204800/51240
#delay_access 1 allow limit_downloads !allow_client

#============================================================$
#                      Bypass Squid
#============================================================$

#acl url_bypass url_regex -i "/etc/squid/bypass_squid_domain"
#http_access allow url_bypass

#============================================================$
#                 Block Domain + Time Frame
#============================================================$

#acl block1 dstdomain "/etc/squid/domain_block"
#http_access deny block1 !allow_client

acl breaktime1 time MTWHFA 09:00-09:30
acl breaktime2 time MTWHFA 13:00-13:30
acl blockdomain dstdomain "/etc/squid/denied_domains.acl"
http_access deny blockdomain !breaktime1 !breaktime2


#============================================================$
#                       ACL BT
#============================================================$

acl bittorrent_announce url_regex -i http://.+announce.+info_hash=
http_access deny bittorrent_announce !allow_client

acl bit url_regex -i bit.com torrent.com
http_access deny bit !allow_client

#============================================================$
##                 Block Files extension
#============================================================$

acl blockfiles urlpath_regex "/etc/squid/blocks_files"
http_access deny blockfiles !allow_client

#============================================================$

File extension

\.[Ee][Xx][Ee]$
\.[Aa][Vv][Ii]$
\.[Tt][Oo][Rr][Rr][Ee][Nn][Tt]$
\.001$
\.002$
\.003$
\.004$
\.005$
\.006$
\.007$
\.008$
\.009$
\.010$

URL extension

.wujie.net
.seawjung.com
.mahamodo.com
.youtube.com
.ro89.com
.3feel.com
.sex.com
.nusde.com
.video.xnxx.com
.ultrareach.com
.camfrog.com
.camfrog.in.th
.watch.net.ua
.video.sanook.com
.video.mthai.com