Re: [squid-users] Question about how to deny a site at a specific time

From: Mark Elsen <[email protected]>
Date: Sat, 17 Dec 2005 18:16:46 +0100

> HI,
>
> i have a big (for me) problem, i must deny at specific time a website
> e.g https://secure.blabla.org/dir/ but this site should always be
> accessible from 2 ips of my network.
> If a user hits the patch in the period its forbidden, then the user
> should be redirect to a custom error page.
>
> I have solved some issuses:
>
> acl bla url_regex -i http://www.organspender.org/pics/ (thats not the
> real site only for testing)
> deny_info ERR_MY_CUSTOM bla
> http_access deny bla
>
> But i dont know how to make the time period, because 'acl aclname
> time [day-abbrevs] [h1:m1-h2:m2]' handles only the hole access to
> the proxy as i know.
> And i dont know hot to make it that the 2 ips have access all the time.
>
> I hope my english is not too bad and you understand what i mean =)
>

You just have to put the relevant http_access directives in the
correct order (e.g.) :

    http_access allow ip2_containing_acl
    http_access deny restricted_time_period_containing_acl

M.
Received on Sat Dec 17 2005 - 10:16:49 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST