Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ============================================================
- # SquidGuard configuration file
- # This file generated automaticly with SquidGuard configurator
- # (C)2006 Serg Dvoriancev
- # email: [email protected]
- # ============================================================
- logdir /var/squidGuard/log
- dbhome /var/db/squidGuard
- # WorkHours
- time WorkHours {
- weekly mon 08:00-18:00
- weekly tue 08:00-18:00
- weekly wed 08:00-18:00
- weekly thu 08:00-18:00
- weekly fri 08:00-17:00
- }
- #
- src WorkTime {
- ip 192.168.0.0/24
- log block.log
- }
- #
- dest FileAccessDeny {
- expressionlist FileAccessDeny/expressions
- log block.log
- }
- #
- dest DomainAccessDeny {
- domainlist DomainAccessDeny/domains
- log block.log
- }
- #
- rew RewriteBase {
- [email protected]@bash.im@i
- log block.log
- }
- #
- rew safesearch {
- s@(google\..*/search?.*q=.*)@\1\&safe=active@i
- s@(google\..*/images.*q=.*)@\1\&safe=active@i
- s@(google\..*/groups.*q=.*)@\1\&safe=active@i
- s@(google\..*/news.*q=.*)@\1\&safe=active@i
- s@(yandex\..*/yandsearch?.*text=.*)@\1\&fyandex=1@i
- s@(search\.yahoo\..*/search.*p=.*)@\1\&vm=r&v=1@i
- s@(search\.live\..*/.*q=.*)@\1\&adlt=strict@i
- s@(search\.msn\..*/.*q=.*)@\1\&adlt=strict@i
- s@(\.bing\..*/.*q=.*)@\1\&adlt=strict@i
- log block.log
- }
- #
- acl {
- #
- WorkTime within WorkHours {
- pass !DomainAccessDeny all
- redirect http://block.mts.ru
- log block.log
- } else {
- pass all
- redirect http://block.mts.ru
- log block.log
- }
- #
- default {
- pass DomainAccessDeny all
- redirect http://192.168.0.1:80/sgerror.php?url=blank&msg=&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
- log block.log
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment