On mån, 2008-06-09 at 20:06 +0200, Philip Kloppers wrote: > Hi all, > > I need to add a banner to unauthenticated groups informing them that > they are using a restricted public network, while still allowing them > to access the web, albeit at a slower speed via delay pools. So far, I > have managed to add the banner to the pages using the redirector, a > perl script and a php page that creates a frameset with the banner in > the top frame, and the desired content in the main frame. Problem is > that the request for the content in the main frame either gives an > access denied error, or returns a blank document, or creates a whole > page of repeating banners. How is Squid knowing when to redirect and when not? I suspect you created yurself a redirection loop, where the frame contents again gets redirected to the frame set. To use frames in this manner you need something which actively rewrites HTML and inserts javascript detecting if the page is run within a frameset and reloads via the frameset if not. A simple url rewriting proxty can not do the job as it is not visible at the HTTP level if the request came from within a frameset or standalone. Regards Henrik
Attachment:
signature.asc
Description: This is a digitally signed message part