On 2014-02-24 05:37, Alex Rousskov wrote:
> On 02/21/2014 07:55 AM, Dr.x wrote:
> 
>> I want an proxy server that can insert an banner (customizable, like 
>> an
>> frame so I can insert an banner in flash, or an html code with js) on 
>> the
>> top of all the web page.
>> is that possible with squid ?
> 
> Yes, it is possible with Squid, but there are caveats. One way to do
> this is to use an eCAP adapter that does the ad injection. There are
> production deployments doing that today AFAIK. However, please see the
> following page for a list of problems such a solution would face:
> 
>  FAQ: "Can I inject ads into pages?"
>  https://answers.launchpad.net/ecap/+faq/1793
> 
Note that second to last paragraph on non-technical problems...
   ** consult a good lawyer first**.
http://www.benedelman.org/spyware/
http://www.benedelman.org/injectors/
(The legal aspects on the page above are mostly USA related, but there 
are equivalents in most countries signed up to the international 
Copyright agreements and BERN convention.)
> 
>> do i need to be programmer to do it , ?
> 
> You need to write the ad injection adapter yourself or find somebody 
> who
> can write/sell such a module for/to you. This is not rocket science, 
> but
> it is not a simple task either (because of various complications and
> trade-offs mentioned at the above URL).
I suggest you look at using portal pages instead. Much more accepted by 
end-users and do not encounter any of the legal or technical issues with 
altering others copyrighted content. The Squid session helper can do 
this with a timeout occasionally redirecting users to the portal page 
with advertising, or something slightly smarter can be made to only do 
it for certain user-visible requests (ie ignoring images, scripts, 
stylesheets, etc).
Amos
Received on Sun Feb 23 2014 - 23:19:47 MST
This archive was generated by hypermail 2.2.0 : Mon Feb 24 2014 - 12:00:07 MST