I'm not sure if this is the level you need an answer on, but I would put a dictionary in the proxy keyed by IP address and with a value of the last time that user was forced to the intranet site.  Check that against the current time and a 16 hour offset and send a redirect message if it's out of date.  Hoping someone else chimes in with how to stick a redirect into a proxy, glancing at the code I'm not sure how to tell you to do that, though it's clearly possible.
<br><br>Andy Fundinger<br><br><div><span class="gmail_quote">On 9/18/07, <b class="gmail_sendername">Fred Trotter</b> &lt;<a href="mailto:fred.trotter@gmail.com">fred.trotter@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am new to python and I am potentially interested in writing<br>a new protocol with Twisted.&nbsp;&nbsp;However I wanted to start with a simpler<br>problem that I have been working on, so that I can understand better
<br>how twisted works.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A particular client wants to enforce a home page for the first<br>internet connection each day. They have a intranet portal that gives<br>messages to employees and they want to be sure that each employee, no
<br>matter how they have their homepage set, will see the messages the<br>first time they connect. After the first connection they want the<br>proxy to simply forward requests to the internet without filtering.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Since I need to understand this issue for my other project
<br>too, how do I get the python loop do one thing based on a &quot;new day&quot;<br>for an IP address and then do something else after that action has<br>been completed. Example code that addresses my problem would be great,
<br>but I would be happy to have links to examples that do this...<br><br>Thanks!!<br><br>--<br>Fred Trotter<br><a href="http://www.fredtrotter.com">http://www.fredtrotter.com</a><br><br>_______________________________________________
<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Blog:&nbsp;&nbsp;<a href="http://channel3b.wordpress.com">http://channel3b.wordpress.com</a><br>Second Life Name:&nbsp;&nbsp;Ciemaar Flintoff<br><br>I am a sig Virus. Please put me in your sig so that I can continue to replicate.