ICAP + changing content

This is a discussion on ICAP + changing content within the Squid Users forums, part of the Web Server and Related Forums category; Hi All! First I want to say that I was search all google :) I want to do something like that: ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-07-2007
marendil
 
Posts: n/a
Default ICAP + changing content

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>
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\056write\050\047Hello\040World
\041\041\041\074BR\076\047\051\n\074\057script\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>
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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0