Author Topic: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)  (Read 14119 times)

Travis

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
[SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« 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.
« Last Edit: August 06, 2010, 02:13:52 am by Travis »

Travis

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: HTTP Proxy (Squid + adzapper?) Changing squid.conf
« Reply #1 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
« Last Edit: August 09, 2010, 01:49:22 am by Travis »

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #2 on: August 06, 2010, 08:59:05 pm »
Hi there,

Thanks very much for sharing this!  ;)

It is really appreciated.

Best,
My secret is my silence...

Travis

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #3 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)

Travis

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #4 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.



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



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
« Last Edit: August 07, 2010, 11:40:53 am by Travis »

WolfRage

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #5 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.

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #6 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?
Zentyal Server Lead Developer

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #7 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/
Zentyal Server Lead Developer

binary-two

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +3/-0
    • View Profile
Re: [SOLVED] [Ad Block Feature] HTTP Proxy (Squid + Adzapper)
« Reply #8 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