Google Chrome AdBlock with Privoxy

[update 2]

Check adsweep an adblock extension for chrome

[update]
other alternatives to my original solution:

Privoxy solution:

I love the new Google Chrome Browser, especially the…:

  • - really fast render speed,
  • - new tab page
  • - and the ability to create a new window from a tab that you drop outside chrome.

Naturally, I am missing all my nice add-ons from Firefox, mainly the adblock add-on!

So I found an alternative solution: using Privoxy. Privoxy is a small web proxy that runs locally and has the ability to filter ads.

  • 1. Download & install http://www.privoxy.org/
  • 2. And then set Google chrome’s proxy options:
    Options->Under the hood->change proxy settings->Lan Settings
    Check: “Use a proxy server for your LAN”
    And under advanced add proxy address 127.0.0.1 port 8118 for http and secure but leave ftp blank.

Now you can surf the web with Google Chrome and a lot less ads!

Related posts:

  1. Google Chrome ADBlock without proxy

79 Comments

  1. I love the speed in Chrome, but this make surfing even faster…

    Go get it! :)

    /Brian

  2. ReSpawN says:

    I couldn’t agree more on your opinion about Adblock. I surly missed it the first time I went to a site of mine. Awfull lot popups.

    Well, thanks for the proxy tips but they don’t work here, shame.

  3. Foosnark says:

    Thanks… this did the trick and now I’m likely to use Chrome as my main browser.

  4. DP says:

    Well I can get it to work with Firefox (which doesn’t really need it), but both IE and Chrome aren’t using it for some reason. :-(

  5. DP says:

    …aaand, now it works….I’m a dumba$$…had to set the proxy settings on dialup for my aircard in my laptop, not just the LAN settings. Doh!

  6. Tristan says:

    Works very well! Thank you so much!!! (Wiping tears of joy from my eyes…)

  7. Alexis says:

    It’s brilliant !
    it works like a charm
    Thank you very very much
    I think I’m hooked on Chrome and blocking ads is not something I can do without.

  8. ed says:

    love it, :D chrome has just replaced my firefox

  9. kadrox says:

    Thanks to you and privoxy, now Google Chrome doesn’t suck very badly… I’ll b using it 2nite!

    Muchas gracias :D

  10. vrm says:

    This is the sh*t! Thanks a lot.
    Is there a possibility to remove the “Request blocked by Privoxy: Catch…” message as well?
    Regards,
    VRM

  11. Marcus says:

    I found Ad Muncher and it’s awesome. :D

    It’s cruashing all the ads in every browser including chrome and it’s a LOT faster than privoxy.

    http://www.admuncher.com

  12. tbass says:

    I’m computer dumb so forgive me. If I do this on my computer will it effect how other computers on my wireless network access the net?

    Thanks

  13. thomas says:

    doesn’t work for french ads apparently… :( or I’m doing something wrong…

    can’t believe people can actually surf without adblock… internet is SCARY without it!

  14. Dimitri says:

    Awesome!! Thank you so much!

  15. Rob says:

    Unfortunately it uses IE’s proxy settings, so if you change it for Chrome, it also changes it for IE. Also, if your company prohibits changing the proxy via policy (as mine does) then this method will not work. :(

  16. mosca says:

    this was good !!! it works, thanks a lot

  17. @vrm: Yes, but it’s all based on the filter rules http://www.privoxy.org/user-manual/quickstart.html#QUICKSTART-AD-BLOCKING

    @tbass: No, it “only” affects the windows proxy settings => internet explorer, chrome, messenger, … all other programs that use this common setting (as stated correctly by rob)

    @Marcus: yes ad muncher or other ad blocking software that uses a proxy works great, unfortunately ad muncher is not free.

  18. tbass says:

    Wow! All I can Say is WOW! Now how do I get Real Player to download video? lol

    Thanks again.

  19. jon says:

    I have the settings set up exactly how you describe but It is not working, when I try to open Privoxy it gives me this error

    ”Sep 03 blahblahblah Fatal Error: Can’t bind to 127.0.0.1:8118: There may be another privoxy or some other proxy running on port 8118.”

    I dont even really know what a proxy is so Im pretty sure I never had anything else set up. I am on a linksys router from cable modem what should I do?

    Id really like to use chrome as my main browser if I can just get this adblocking working.

    thx

  20. @jon: you can check what application is already running on port 8118 with this tool http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

    you can also try to start Privoxy on a different port: in Privoxy under “Options-> Edit Main Configuration”: change the line “listen-address 127.0.0.1:8118″

  21. [...] Source: http://www.fritscher.ch/blog/2008/09/03/google-chrome-adblock-with-privoxy/ [...]

  22. Brunsgaard says:

    Ooohhh Snap

    That was exactly what i was looking for…

    Bless You Boris Fritscher

  23. glayshure says:

    cool, works well — but there isnt a way to manually remove ads? or add new ads to the filter list

  24. @glayshure: yes you can edit the config files directly (see examples inside the files or check the manual) user.action, default.filter, default action

    Or you can also activate the web editing in config.txt set “enable-edit-actions 1″, then you can access the filters by browsing to http://config.privoxy.org/show-status

    I agree that it’s not very user friendly :(

  25. Neil says:

    Thanks. Chrome has just replaced FF as my main browser.
    :)

  26. Rabidfrog says:

    Too bad it doesn’t allow page per page blocking of ads or exceptions etc…

    Or is there something else I’m missing :)

  27. Mr. F. Le Mur says:

    I’m fiddling with Google Chrome and Privoxy; using it increased DL times by about 15-20% (http://www.speakeasy.net/speedtest/), but it was super easy to set up and works great for blocking ads – just install Privoxy, configure Chrome and leave the Privoxy config alone.

  28. Dee says:

    Just what I was looking for, thanks!!

  29. Dee says:

    Is there a way to disable the Privoxy tray icon?

  30. @Dee: you can disable the animation in the config.txt file with “activity-animation 0″

    you can also hide the icon by going to “Taskbar and Start Menu Properties > Notification Area > Customize ” and select always hide.

  31. Nick says:

    I am getting this error after installing and changing settings:

    Error 104 (net::ERR_CONNECTION_FAILED): The attempt to connect to the server failed.

    I also noticed the following line when Privoxy loads:

    Sep 05 16:05:40.718 Privoxy(00000720) Info: No thread-safe PRNG implemented for your platform. Using weak ‘randomization’ factor which will limit the already questionable usefulness of header-time-randomizing actions (disabled by default).

    Any thoughts?

  32. David says:

    Privoxy is better than nothing but doesn’t catch nearly as many ads as adblock.

  33. [...] Bye bye Firefox and IE – Hello Google Chrome? Google Chrome AdBlock with Privoxy at TechnoBabel This is handy too – acts as an adblock on chrome – [...]

  34. Craig says:

    Thanks, that fixed one of the problems with Chrome. The other is the reason I just uninstalled it and probably will not load it again. ** While CLOSED (not running in the background), it constantly is trying to access the internet via Googleupdate. :(

  35. Dee says:

    @David: where have you seen ads? ALL ads have been blocked during my browsing…

  36. Shlomi says:

    Privoxy is spectacular – thanks Boris!

    I’ve looked through the manual and it’s a little bit difficult for me:

    Can anyone tell me the syntax to:
    - block all flash from a site
    - unblock all flash from a site

  37. @Shlomi, try something like this in user.action file:

    { +block{My Flash block} +handle-as-empty-document}
    http://www.example.com/.*\.swf

  38. [...] – Here’s how to use it with chrome – Thanks goes to Boris [...]

  39. Zahir says:

    started working instantly… no ads what so ever… im very happy with this… i will use privoxy as its a great sw and as soon as google releases an official adblocker i will switch on to it… thanks

  40. Ron says:

    Fantastics. This works great.
    thanks very much!

  41. Mr. F. Le Mur says:

    “I’m fiddling with Google Chrome and Privoxy; using it increased DL times by about 15-20%”

    Not any more – DL speeds are the same as with Ad Muncher, namely about the same as w/no proxy. No ads with either one.

    Re: Bookmarks: In FF had about 10 folders each with dozens of bookmarks – I managed to get all 10 folders onto Chrome’s bookmark toolbar: dragged each one individually, tho now I forget how.

    I hacked-away the auto-updating, and tho the install location still bugs me, I’m sure they’ll fix that with a real release.

    New browser!

  42. [...] September 7, 2008 at 7:04 am · Filed under Uncategorized ·Tagged adblock, browser, chrome, google, privoxy Google Chrome is lean and fast, but at this stage it lacks add-ons that Firefox has. One of my favorite add-on is Ad-blocking feature. Here is how we can use Privoxy to block ads. [...]

  43. Freecheese says:

    Going thru rocket science for a damn browser.

  44. kobz says:

    Cool!
    It works…and it’s FREE!

  45. SirRasor says:

    AdBlock plus is only one half of the problem, because the NoScript plugin for FF is much more stronger.

  46. Erick says:

    Yeah. So I move to Chrome for the “really faster” and then mess it all up with the crawling Privoxy. No thanks.

  47. Sorry firefox you just got replaced

  48. Henon says:

    Privoxy is just way too complicated. BFilter is absolutely superior as described here: http://eqqon.com/index.php/User:Henon

  49. One step forward (anticrash)

    and three steps back:

    privacy borrowing: import from firefox

    zero in chrome adblocking: loopback filtering is entertaining (proxomitron)

    extensions MIA

    and I’m sure it won’t bother you contratheists but I cannot load

    masstimes.org

    in chrome because nanny chrome doesn’t like some of the ad content, but provides no easy way to show the safe content and exclude the bad

    :(

Leave a Reply