5. To modify access of a network to intenet: acl mylan src 192.168.0.0/255.255.255.0 acl all src 0.0.0.0/0.0.0.0 http_access allow mylan http_access deny all To restrict a particular site access: acl blog dst anyone.blog.com http_access deny blog ** This will block the access to anyone.blog.com acl youtube dstdomain .youtube.com http_access deny youtube ** This will block the access to *.youtube.com
7. To restrict Access by time acl hours time M T W H F 9:00-17:00 http_access allow mylan hours ** This will allow the access to network from 9:00 am to 5:00pm (from Monday to Friday) To Restrict the Search by a keyword acl badkeyword url_regex [–i] torrent proxy http_access deny mylan badkeyword ** This will block the search containing these keyword or a url of the page That contains these keyword acl badkeyword url_regex [–i] “/etc/squid/keyword.acl” acl badkeyword urlpath_regex [–i] “/etc/squid/keyword.acl” acl badkeyword urlpath_regex [–i] torrent proxy Reading from a file **This will block all the keywords that are wriiten in the file named keyword.acl
8. To Control Access to particular filetype acl blockedfiles urlpath_regex [-i] gif$ jpg$ png$ Or acl blockedfiles urlpath_regex [-i] “/etc/squid/blockedfiles.acl” http_access deny mylan blockedfiles **This will block access to all the files having the .gif , .jpg, .png extension To control Access using MAC address acl blockmac arp 00:15:EF:8D:7A:C3 http_access deny blockmac **This will block the machine to access the network having the above mac address