1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adblocking

Discussion in 'Tomato Firmware' started by anystupidname, Oct 17, 2011.

  1. anystupidname

    anystupidname Addicted to LI Member

    I've used all-u-need adblock successfully before but it is overly complicated for my taste. I have a simple dnsmasq.custom file (see excerpt below) that has a couple thousand lines which largely suffice for what I want. The problem is, I don't want to run a pixelserv server and, with this file in place, all blocked banners are replaced with the browser's 404 error message instead. I'd rather the ad elements on pages just be collapsed or at least be blank. Can anybody suggest anything better besides client-side browser addons?

    Code:
    address=/101com.com/127.0.0.1
    address=/101order.com/127.0.0.1
    address=/103bees.com/127.0.0.1
    address=/1100i.com/127.0.0.1
    address=/a.softpedia.com/127.0.0.1
    address=/a.ucoz.net/127.0.0.1
    address=/a.ucoz.ru/127.0.0.1
    address=/a.windowsitpro.com/127.0.0.1
    address=/a.wowinterface.com/127.0.0.1
    address=/a.xanga.com/127.0.0.1
    address=/a32.g.a.yimg.com/127.0.0.1
    address=/aaddzz.com/127.0.0.1
    address=/abacho.net/127.0.0.1
    address=/abc-ads.com/127.0.0.1
    address=/absurdprofits.com/127.0.0.1
    address=/abz.com/127.0.0.1
    address=/ac.rnm.ca/127.0.0.1
    address=/accelerator-media.com/127.0.0.1
    address=/accounts.pkr.com/127.0.0.1
    address=/ads.rockstargames.com/127.0.0.1
    address=/ads.roiserver.com/127.0.0.1
    address=/ads.rottentomatoes.com/127.0.0.1
    address=/ads.rpgdot.com/127.0.0.1
    address=/ads.s3.sitepoint.com/127.0.0.1
    address=/ads.samknows.com/127.0.0.1
    ...
     
  2. rhester72

    rhester72 Network Guru Member

    That's precisely what pixelserv is for. Why would you rather not run it?

    Rodney
     
  3. ppsun

    ppsun Networkin' Nut Member

    I use "ALL-U-NEED Ad Blocking v3.9e" and run pixelserv from jffs directory within the router. I don't use a separate server for pixelserv. It's a fairly straight forward set up.
     
  4. anystupidname

    anystupidname Addicted to LI Member

    I take it from your response that you are unaware of an alternate solution? I'd rather put up with the ugly 404 panes than run one more thing. Am I the only person that thinks it is insane to run pixelserv just to serv up pixels every time an ad is not loaded?!? It feels kind of like "Sir, if you want your fog lights to work right, you have to extend this drag inducing anemometer..."
     
  5. srouquette

    srouquette Network Guru Member

    it's faster (to resolve) than redirecting to 127.0.0.1. That's also why the script redirects to 0.0.0.0 by default, because it's faster.
    pixelserv runs on your router, what's the problem with that?
    It's not like it's an heavy program or something like that...
    I have a WRT54GL and it runs fine.
    What is your router?
     
  6. rhester72

    rhester72 Network Guru Member

    There is no alternate solution, as what is presented is entirely dependent on the client/browser in absence of any other meaningful content.

    If you'd really rather have pages without img dimensions end up looking like a cluttered mess than have 40K of extraordinarily lightweight code running, by all means, do so. It's your router, browser, and experience.

    Rodney
     
  7. anystupidname

    anystupidname Addicted to LI Member

    @srouquette: From what I've read, 0.0.0.0 exposes traffic on all interfaces instead of just the loopback "interface".
    @rodney: Thanks. Since httpd is already running for the tomato admin interface, would it not be possible to have it serve up a pixel?
     
  8. rhester72

    rhester72 Network Guru Member

    If you could make it ignore the URI, sure...so what you'd need is to rewrite httpd to answer on 80, ignore the URI, and present a blank pixel no matter what the request was. Come to think of it...sounds a lot like what pixelserv is. ;)

    Rodney
     
  9. Beast

    Beast Network Guru Member

    Im useing 3.9e as well. I have a usb drive connected, where I keep pixelServ. The USB Drive is defined in my setup. So I just added that path to the script.

    USEPIXELSERV="Y"
    PXL_IP=192.168.1.3
    PXL_EXE="/tmp/mnt/USBDRIVE/pixelserv" <-------------- path to pixelserv on the USB Drive.
    PXL_URL=""

    Since your WRT54G does not have a usb port, you could format JFFS and put pixelserv there. Or setup a CIFS Client and point the script there.
    Not sure if JFFS content servives a reboot or not. So you may have to load pixelserv there every time you reboot. Some one here surely know the
    behavior of JFFS.

    Or go here its the orginal thread on addblocker: http://www.linksysinfo.org/index.php?threads/all-u-need-ad-blocking.33191/
     
  10. rhester72

    rhester72 Network Guru Member

    I think there are already a lot of said guides on here for that very thing...the way I do it is probably not the 'standard' way. If you can't find anything useful, ping me and I'll try to guide you through how I manage it.

    Rodney
     
  11. ppsun

    ppsun Networkin' Nut Member

    jffs survives reboot and power reset - but not a firmware upgrade.
    You will need to re-setup pixelserv in jffs only after a firmware upgrade.

    My path for pixelserv in jffs is:
    PXL_EXE="/tmp/mnt/jffs/pixelserv"
     

Share This Page