[squid-users] provide html pages embedded in a standard page using squid. Is this possible?

2007-06-26 Thread js

Hi list,

Can I configure Squid this way that it always provides a client the html 
page below?
The first frame contains what I configure (manually or whatever not 
within the scope of this question).

The second frame contains the actual requested webpage.

Thanks.


!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

HTML
HEAD
TITLEWeb Content Filtering/TITLE
/HEAD

FRAMESET ROWS=8%,*
  FRAME SRC=an_url_I_descide_to_show NAME=TITLE SCROLLING=NO 
NORESIZE FRAMEBORDER=0

  FRAME SRC=the_requested_url  NAME=MAIN
/FRAMESET

/HTML
**


Re: [squid-users] provide html pages embedded in a standard page using squid. Is this possible?

2007-06-26 Thread Henrik Nordstrom
tis 2007-06-26 klockan 23:59 +0200 skrev js:
 Hi list,
 
 Can I configure Squid this way that it always provides a client the html 
 page below?

Not easily. Do do this you need to rewrite the content of any downloaded
HTML object to add javascript code checking that it's loaded from within
the frame, and reload the frameset otherwise..

My recommendation in how to do this would be to write an ICAP server
doing the needed HTML rewrites. Squid-3 has ICAP support, and there is
unofficial patches for Squid-2.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


Re: [squid-users] provide html pages embedded in a standard page using squid. Is this possible?

2007-06-26 Thread squid3
 tis 2007-06-26 klockan 23:59 +0200 skrev js:
 Hi list,

 Can I configure Squid this way that it always provides a client the html
 page below?

 Not easily. Do do this you need to rewrite the content of any downloaded
 HTML object to add javascript code checking that it's loaded from within
 the frame, and reload the frameset otherwise..

 My recommendation in how to do this would be to write an ICAP server
 doing the needed HTML rewrites. Squid-3 has ICAP support, and there is
 unofficial patches for Squid-2.


In which case, you would be much better off taking a good look at the
OBJECT tag in HTML/XML and coding the re-writing to simply place an
OBJECT at the top of any served pages with a link to your banner content
inside.

Not that performing a man-in-middle attack on peoples HTML traffic is ever
considered a good thing. If its your own pages there are better options
based at the webserver.

Amos