]>
Commit | Line | Data |
---|---|---|
1 | squid_ip 127.0.0.1 | |
2 | squid_port 800 | |
3 | # | |
4 | logfile /var/log/squid/squidclamav.log | |
5 | redirect http://127.0.0.1:81/clwarn.cgi | |
6 | # | |
7 | debug 0 | |
8 | stat 0 | |
9 | # | |
10 | clamd_local /var/run/clamav/clamd | |
11 | #clamd_ip 192.168.1.5 | |
12 | #clamd_port 3310 | |
13 | # | |
14 | maxsize 5000000 | |
15 | maxredir 30 | |
16 | timeout 60 | |
17 | trust_cache 1 | |
18 | # | |
19 | # Do not scan standard HTTP images | |
20 | abort ^.*\.(ico|gif|png|jpg)$ | |
21 | abortcontent ^image\/.*$ | |
22 | # | |
23 | # Do not scan text and javascript files | |
24 | abort ^.*\.(css|xml|xsl|js|html|jsp)$ | |
25 | abortcontent ^text\/.*$ | |
26 | abortcontent ^application\/x-javascript$ | |
27 | # | |
28 | # Do not scan streaming videos | |
29 | abortcontent ^video\/mp4$ | |
30 | abortcontent ^video\/x-flv$ | |
31 | # | |
32 | # Do not scan pdf and flash | |
33 | #abort ^.*\.(pdf|swf)$ | |
34 | # | |
35 | # Do not scan sequence of framed Microsoft Media Server (MMS) data packets | |
36 | abortcontent ^.*application\/x-mms-framed.*$ | |
37 | # | |
38 | # White list some sites | |
39 | whitelist .*\.clamav.net |