Search squid archive

RE: [squid-users] Squid, redirect user by ip from 06 to 18:00 to you are not allowed to surf page

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

 



> -----Original Message-----
> From: Robert Becskei [mailto:brobiwbe@xxxxxxxxxxxxx]
> Sent: Wednesday, April 20, 2005 9:19 AM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject: [squid-users] Squid, redirect user by ip from 06 to 18:00 to
> you are not allowed to surf page
> 
> 
> Hello everyone,
> 
>  I've been running squid for a while, and did a few redirection via 
> squidguard, and also some really simple authentication etc...
> 
>  but this one I don't know how to accomplish :
> 
>  I would like to redirect a certain group of ip addresses 
> (192.168.1.40-192.168.1.80) from 6:00 till 18:00 to a banned.html
> webpage, so they will only be able to surf the internet after workhours 
> 18:00 till 06:00 .
> 
>  is this possible? a hint if I may beg ? :)
> 
>  Sincerely
>  Robert Becskei 


acl workers src 192.168.1.40-192.168.1.80/32
acl workTime time M-F 06:00-18:00
http_access deny workers workTime
deny_info http://my.web.server/banned.html workers workTime

Placing these acls in the correct position in the squid.conf is an exercise
left to the reader.  An alternative is to save the banned.html page to
Squid's error directory and change the deny_info line appropriately.  These
acls have not been tested in a production environment, and are provided
without warranty expressed or implied, yadda yadda yadda.

Chris

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

  Powered by Linux