RE: [squid-users] redirect to a web page once per day using squid?

From: Lightfoot.Michael <[email protected]>
Date: Wed, 2 Apr 2003 10:58:22 +1000

>
> I would like to have a news web page displayed to users who
> pass thru my
> squid proxy. I only want the page to be displayed once per
> day per client
> (IP) if it's possible. I believe I can work out the logic of who's
> visited the page using php scripting and the user's IP. But,
> I'm not sure
> how, if possible, to configure squid to show them the page. Any
> suggestions?
>
The word "redirect" in your Subject: line may give you a clue. You
could write a redirector that passes back the URL of the news page if
they haven't viewed it already (with a link to the one they actually
asked for) or the link they asked for otherwise.

This would naturally add some overhead, but not much after a burst in
the mornings.

Michael Lightfoot
Unix Consultant
ISG Host Systems
Comcare
+61 2 62750680
Apologies for the rubbish that follows...
------------------------------------------------------------------------
NOTICE: This e-mail message and attachments may contain confidential
information. If you are not the intended recipient you should not use or
disclose any information in the message or attachments. If received in
error, please notify the sender by return email immediately. Comcare
does not waive any confidentiality or privilege.
Received on Tue Apr 01 2003 - 17:58:59 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:35 MST