ICAP + changing content
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > ICAP + changing content




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ICAP + changing content  
marendil


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-07-07 12:15 PM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register