[squid-users] ACL and http_access

Amos Jeffries squid3 at treenet.co.nz
Sun Nov 15 02:01:44 UTC 2015


On 14/11/2015 11:23 p.m., Magic Link wrote:
> I 've made a mistake so what i want is users can access Internet, except these two periods where they can access only few sites defined in the file.
> I'll try next monday and come back here.
> Thanks !
> 

THen your config needs to be:

 acl hours time MTWHF 09:30-10:30
 acl hours time MTWHF 17:30-18:30

 http_access allow localhost
 http_access deny hours !whitelist
 http_access allow network
 http_access deny all

Amos



More information about the squid-users mailing list