1 2 3 4 5 6 7 8 9 10 |
acl localhost src 127.0.0.1/32 acl localnet src 192.168.0.0/24 http_access allow localnet http_access allow localhost http_access allow all #!! Delete the deny all. !! |
!! ////
1 2 3 4 5 6 7 |
acl RestrictedHost src 192.168.1.23 # # Add this at the top of the http_access section of squid.conf # http_access deny RestrictedHost http_access allow home_network business_hours |
Restricting Access to specific Web sites
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File: /usr/local/etc/allowed-sites.squid www.kutayzorlu.com # File: /usr/local/etc/restricted-sites.squid www.illegal.com # # Add this to the bottom of the ACL section of squid.conf # acl home_network src 192.168.1.0/24 acl business_hours time M T W H F 5:00-13:00 acl allowed dstdomain "/usr/local/etc/allowed-sites.squid" acl denied dstdomain "/usr/local/etc/restricted-sites.squid" # # Add this at the top of the http_access section of squid.conf # http_access deny denied http_access allow allowed # kutayzorlu.com |