Search squid archive

Re: injecting small piece of html into pages retrieved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On fre, 2008-03-21 at 19:45 -0700, Edward Rosinzonsky wrote:
> Hi,
> 
> I'd like to inject a small piece of HTML into any page retrieved
> through the proxy. E.g. change "</head>" to "<script ...></head>".
> The HTML is static.  That is the same piece of HTML is to be injected
> into every page.  Is this possible?  If so, how?  Is there perhaps a
> plugin, that could make this possible?

1. Create an url rewriter to http://localhost/specialscript.pl for the
page in question

2. Have the script fetch the original page

3. Insert desired text using regexp and send to browser

-- 
Andreas



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux