summaryrefslogtreecommitdiff
path: root/data/templates/squid/squidGuard.conf.tmpl
blob: 90704361444d55335efa214070d8651d5ddb17c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### generated by service_webproxy.py ###
{% if url_filtering is defined and url_filtering.disable is not defined %}
{%   if url_filtering.squidguard is defined and url_filtering.squidguard is not none %}
dbhome /opt/vyatta/etc/config/url-filtering/squidguard/db
logdir /var/log/squid

rewrite safesearch {
        s@(.*\.google\..*/(custom|search|images|groups|news)?.*q=.*)@\1\&safe=active@i
        s@(.*\..*/yandsearch?.*text=.*)@\1\&fyandex=1@i
        s@(.*\.yahoo\..*/search.*p=.*)@\1\&vm=r@i
        s@(.*\.live\..*/.*q=.*)@\1\&adlt=strict@i
        s@(.*\.msn\..*/.*q=.*)@\1\&adlt=strict@i
        s@(.*\.bing\..*/search.*q=.*)@\1\&adlt=strict@i
        log     rewrite.log
}

{%   endif %}
{% endif %}