Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-05-2007, 01:26 PM   #1
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 469

Rep: Reputation: 31
Is possible to have squid modify incoming pages?

At work we have systems which have been hard coded with "application/x-java-applet;jpi-version=1.4.2_12" and other versions on different systems. In windows this is ok as you can have multiple versions of java running on the same system.

However in firefox on linux you can only have one version of java plugin at one time. It's easy enough to fool the system by adding extra jpi versions to the plugin.dat file. however it only picks up the last jpi version to do the check. So if I try to access to systems with different jpi versions it won't go.

So I was wondering if it's possible to set up squid to do a global replace on the string "application/x-java-applet;jpi-version=x.x.x" that way all the systems coming in are of the same jpi version.

I know it would be easier to just change the jpi hardcode but I don't have access to those systems nor will the sys admins change it for me.

So if I can get squid to fool the system it would be great.
Old 04-05-2007, 04:26 PM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Your request is rather incoherent in that you appear to be mixing up client functions and server functions freely, but what I get from it is that you want to change outgoing and incoming HTTP headers and you are asking if squid will do this.

That isn't squid's purpose, and I honestly don't know if it will do it though I suspect it can.

However, changing/blocking headers IS the job of privoxy and it'll do everything you want - and it probably will be a bit easier to set up than squid will be.
Old 04-05-2007, 04:33 PM   #3
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 469

Original Poster
Rep: Reputation: 31
Sorry didn't realize my explanation wasn't clear.

inside the start page for our application is <EMBED> and <OBJECT> tags. They have a hard coded java version as one of the Parameter tags inside the webpage.

So I was wondering if I could configure squid to intercept the html text, grep/sed it, and serve it to firefox. That way I can modify the java version parameter in the page.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to dynamically modify squid acl frankjoshua Linux - Software 0 07-11-2006 04:10 AM
IP tables / squid incoming traffic xilace Linux - Software 5 10-25-2004 01:38 PM
Squid running but doesn't seem to cach pages Crasherz Linux - Software 1 06-02-2004 04:10 AM
Squid - Serving stale pages cli_man Linux - Software 0 12-08-2003 08:45 AM
For Squid (proxy server) gurus: FTP from browser with read-write-modify permission Zingaro2002 Linux - Software 5 11-24-2003 04:56 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration