Search squid archive

Re: Question about how to deny a site at a specific time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux