<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>this solution works very well ! i think a set of "allow" then "deny" is better to understand too.</div><div><br></div><div>It's resolved, thank you very much.</div><div><br></div><div>Enrique<br><br><div><hr id="stopSpelling">From: magiclink@outlook.com<br>To: antony.stone@squid.open.source.it; squid-users@lists.squid-cache.org<br>Date: Sun, 15 Nov 2015 11:32:32 +0100<br>Subject: Re: [squid-users] ACL and http_access<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><div dir="ltr" style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:12.8px;background-color:rgb(255, 255, 255);">Thank you, i'll test it tomorrow.<div><br></div><div>My boss needs this because of his limited bandwith. And he really needs to limit the access during two crucial periods where the bandwith's availability is very important.</div><div><br></div><div><br></div><div>Enrique</div></div><br><div>> From: Antony.Stone@squid.open.source.it<br>> To: squid-users@lists.squid-cache.org<br>> Date: Sun, 15 Nov 2015 10:06:59 +0100<br>> Subject: Re: [squid-users] ACL and http_access<br>> <br>> On Thursday 12 November 2015 at 15:55:10, Magic Link wrote:<br>> <br>> > I want people don't have access to Internet, except one hour twice a day<br>> > with only some urls.listed in a file<br>> <br>> On 14/11/2015 11:23 p.m., Magic Link wrote:<br>> <br>> > I 've made a mistake so what i want is users can access Internet, except<br>> > these two periods where they can access only few sites defined in the<br>> > file. I'll try next monday and come back here.<br>> <br>> On Sunday 15 November 2015 at 03:01:44, Amos Jeffries wrote:<br>> <br>> > Then your config needs to be:<br>> > <br>> >  acl hours time MTWHF 09:30-10:30<br>> >  acl hours time MTWHF 17:30-18:30<br>> > <br>> >  http_access allow localhost<br>> >  http_access deny hours !whitelist<br>> >  http_access allow network<br>> >  http_access deny all<br>> <br>> Or, if you find it easier to understand:<br>> <br>> acl hours time MTWHF 09:30-10:30<br>> acl hours time MTWHF 17:30-18:30<br>> <br>> http_access allow localhost<br>> http_access allow network hours whitelist<br>> http_access allow network !hours<br>> http_access deny all<br>> <br>> That means "allow network access to whitelisted sites during the defined hours, <br>> or allow general access outside those hours".<br>> <br>> Personally I find a set of "allow" rules easier followed by a "deny" rules to <br>> understand the logic of than interleaved "allow" and "deny" rules :)<br>> <br>> However, I find the new requirement very strange - would you mind sharing, just <br>> for interest's sake, why you want to implement this type of Internet access?<br>> <br>> <br>> <br>> Antony.<br>> <br>> -- <br>> I want to build a machine that will be proud of me.<br>> <br>>  - Danny Hillis, creator of The Connection Machine<br>> <br>>                                                    Please reply to the list;<br>>                                                          please *don't* CC me.<br>> _______________________________________________<br>> squid-users mailing list<br>> squid-users@lists.squid-cache.org<br>> http://lists.squid-cache.org/listinfo/squid-users<br></div>                                    </div>
<br>_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users</div></div>                                         </div></body>
</html>