Common squid requirements - Part 1
In this segment, we would be accomplishing the following: block specific website block multiple website block specific ip block multiple ip block specific mac block multiple mac set maximum download size set time/date limit for browsing Setting up mandatory authentication before internet access We assume that our network is 192.168.10.0/24. 1. Blocking a Specific Website Although a website can be blocked using different parameters, the best way to block a website using squid is the ' url_regex ' parameter. url_regex checks link inserted in the browser for matching syntax. For example, if we tell squid to block any website that has the word “jumble” in it, then any website, like jumbleA.com, jumbleB.com, jumbleC.com would be blocked. root@firefly:~# vim squid.conf #### Declaring the acl ##### acl our_network src 192.168.10.0/24 acl bad_site url_regex .jumble.com #### for example, anything.jumble.com, anythi...