Squid - ICAP + changing content

This is Interesting: Free IT Magazines  
Home > Archive > Squid > March 2007 > ICAP + changing content





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ICAP + changing content
marendil

2007-03-07, 7:15 am

Hi All!

First I want to say that I was search all google

I want to do something like that:

My PC Server will share Internet threw squid with wifi users for free,
but I want to send them all WWW sites with my Javascript code on the
begging, no matter which site want they to see... Next step its that i
want to do frames for every site, for example:

client has request for http://example.com

Original page:

[CODE]
<script type="text/javascript">
document.write('Hello World!!!<BR>')
</script>

<HTML>
<BODY BACKGROUND=#CCDD00>
<A HREF="http://google.com">GOOGLE THE BEST!!!</A>
</BODY>
</HTML>
[/CODE]

My script should change all chars other than 0-9 and a-Z to oct and
add this source to my javascript site then send it to client...

Changed page:

[CODE]
<script language="JavaScript"><!--
function loaded() {
frames[1].document.open();
frames[1].document.write('\074script\040type\075\042text
\057javascript\042\076\ndocument\056writ
e\050\047Hello\040World
\041\041\041\074BR\076\047\051\n\074\057
script\076\n\n\074HTML\076\n
\074BODY\040BACKGROUND\075\043CCDD00\076
\n\074A\040HREF\075\042http
\072\057\057google\056com\042\076GOOGLE\
040THE\040BEST
\041\041\041\074\057A\076\n\074\057BODY\
076\n\074\057HTML\076');
frames[1].document.close();
}

document.write('<frameset rows="22,*" onLoad="loaded()">');
document.write('<frame src="banner.htm">');
document.write('<frame src="about :blank">');
document.write('<\/frameset>');
//--></script>
[/CODE]

Can I do something like this with Squid + ICAP or other tools??
Any ideas how to do this?
It's very important to me...

with regards
Tom

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com