Re: [squid-users] Modify the HTML by squid be return to the visitor

From: Amos Jeffries <>
Date: Thu, 25 Aug 2011 17:25:54 +1200

On 25/08/11 15:14, 铀煌林 wrote:
> I am running the squid on my proxy server and provide proxy service to visitors.
> I want to add some HTML codes such as "<h1>Hi [USERNAME], you are
> useing my proxy</h1>" at the first line inside the<body> tag. And
> return this to my visitors. So they can not only see the page they
> want to, but also my notification.
> How could squid do that?

This is a very, very bad idea. Your customers will NOT enjoy it.

Before you go any further with this idea. Here are the results from
other peoples attempts to alter content:
  * Rogers
  * T-Mobile
  * Phorm

Please consider the more socially acceptable alternative of a
splash/welcome page instead. Keeping in mind that even this portal
approach is only acceptable for free or "cheap" services. If your
customers are paying for access, that is what they are wanting. Not
fancy gimicks that interfere with their content.

> I do some search, but find nothing. Thank a lot for any reply.

Lookup web page and HTML hijacking methods. ICAP, eCAP.

Then be prepared to risk legal action by the page copyright owners and
loosing your customers.


Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.14
   Beta testers wanted for
Received on Thu Aug 25 2011 - 05:26:05 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 25 2011 - 12:00:02 MDT