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

From: Chris Robertson <crobertson@dont-contact.us>
Date: Wed, 20 Apr 2005 11:34:22 -0800

> -----Original Message-----
> From: Robert Becskei [mailto:brobiwbe@stcable.co.yu]
> Sent: Wednesday, April 20, 2005 9:19 AM
> To: squid-users@squid-cache.org
> 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
Received on Wed Apr 20 2005 - 13:34:24 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT