Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: Travis on August 05, 2010, 08:41:19 pm

Title: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: Travis on August 05, 2010, 08:41:19 pm
I have been setting up a server using ebox and I've run into a problem while trying to configure some custom squid rules.

I am trying to insert

url_rewrite_program /usr/bin/adzapper.wrapper

into my /etc/squid/squid.conf file however every time I make the change when I restart the HTTP Proxy in ebox it changes it back.

Can anyone recommend a way to get my configuration to stick or some other software that will allow me to block advertisments?

I am using ebox version 1.5 installed on Ubuntu 10.04 LTS.

Everything in ebox is working perfectly I just want to add in some ad blocking to make it totally perfect.
Title: Re: HTTP Proxy (Squid + adzapper?) Changing squid.conf
Post by: Travis on August 06, 2010, 12:32:21 am
Guide For Installing Adzapper on EBOX

This is better than other solutions such as a hosts file.  With a hosts file the users will see lots of errors all over the pages.  This INCREDIBLE software removes the advertisements and in most cases the frame that they occupied.

Benefits: Increased Browsing Space (screen space), Faster Page Loads, Less Bandwidth Load, Less Scrolling, and More Productive Employees

[edit] You need to disable the HTTP Proxy in eBox prior to performing these steps or you will get an error.  If you have already tried this and it failed simply disable the HTTP Proxy and try again.  Adzapper attempts to stop squid and fails when it cannot.

1.  Install Adzapper  "sudo apt-get install adzapper"

2.  Add the following line to the END of /usr/share/ebox/stubs/squid/squid.conf.mas

url_rewrite_program /usr/bin/adzapper.wrapper

3.  Restart the HTTP Proxy service in ebox

4.  Enjoy the cheers of happy coworkers


A general note for everyone in the future.  If your configuration files need to be modified be sure to check /usr/share/ebox/stubs/ to make sure ebox isn't in control of the settings.

Tags:
Squid Adzapper squid.conf Advertisements Ads Adblock Increase Network Speed
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: sixstone on August 06, 2010, 08:59:05 pm
Hi there,

Thanks very much for sharing this!  ;)

It is really appreciated.

Best,
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: Travis on August 06, 2010, 09:11:52 pm
Hi there,

Thanks very much for sharing this!  ;)

It is really appreciated.

Best,

I'm glad I could contribute something.  I plan to lend my assistance with documentation and any features that I can possibly add to make ebox better.


+1 Vote for Adzapper to become a "tick" box  :)  (Should be just a few lines of code)
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: Travis on August 07, 2010, 11:28:10 am
I thought I would add a little proof of how good this really is.

This is a screen shot of the website without the Adzapper running.

(http://travis.blogsite.org/images/beforeadblocking.png)

This is a screen shot of the same website with Adzapper running.

(http://travis.blogsite.org/images/afteradblocking.png)

Which would you rather read??  Notice how you can read the entire article in the 2nd picture.  :)
This is with a totally bone stock copy of Firefox.  No extensions or plugins.

If anyone uses this please leave a post.  It will put a smile on my face
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: WolfRage on August 15, 2010, 06:47:31 pm
I used your tweak; works like a charm thanks! Plus I agree this should be a check box option.
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: J. A. Calvo on August 16, 2010, 08:26:45 am
+1 Vote for Adzapper to become a "tick" box  :)  (Should be just a few lines of code)

It would be great, but if you add "url_rewrite_program /usr/bin/adzapper.wrapper" it will be applied for everybody and as you know eBox has different filtering profiles that are applied to different objects or groups of users. Do you know if it is also easy to integrate it with the squid ACLs?
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: J. A. Calvo on January 04, 2011, 11:41:33 am
Hi, just to let you know, in this post there is an explanation (using this same example) of a new way to customize the mason templates, persistent after software upgrades:

http://blogs.zentyal.org/jacalvo/2011/01/04/how-to-customize-the-configuration-files-generated-by-zentyal/
Title: Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
Post by: binary-two on January 04, 2011, 01:30:52 pm
... a new way to customize the mason templates, persistent after software upgrades ...

Hi guys,

Absolutely fantastic! Thank you so much for this feature!!!

Björn