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

Questions about ad block script

Discussion in 'Tomato Firmware' started by Jarv0, Nov 18, 2012.

  1. Jarv0

    Jarv0 Serious Server Member

    I have some questions about using the ALL-U-NEED Ad Blocking script. I'm fairly noob when it comes to this.

    1. Is this an up to date method for blocking ads, and a recommended one for normal day-to-day web browsing?
    2. Does it work properly with Linksys E4200 v1 and Shibby Tomato?
    3. What happens to an ad when it's blocked with this method? Will it simply not be able to reach my network, or is there more advanced stuff going on?
    4. I read that it uses DNS Cache Poisoning. Isn't that considered an attack? Can I get in trouble if I use this method (meaning can/will a website flag it as suspicious activity or something)?

    I have experience with Tomato firmware, so I'm not a super-noob. But I lack the knowledge when it comes to in-depth technical stuff.
  2. Jarv0

    Jarv0 Serious Server Member

  3. QSxx

    QSxx LI Guru Member


    1. Yes, script is working perfectly even though it was officialy "updated" quite some time ago. Only thing you need to do is periodically add new hosts - i use block which gives me a list of around 150 000 filtered hosts. This is the list i'm using:

    2. It's built to work on any Tomato version with Administration/Scripts/WAN Up section available - works perfectly on my RT-N16/Toastman combo

    3. Well, not to get too technical i'll try to put it this way: ad is not "blocked" from reaching your computer but rather connection from your computer to the server which hosts ads is blocked. Therefore ad can not be loaded and displayed on your computer. You simply cannot connect to hosts known to serve ads and because of that your surfing is ad-free (mostly)...

    4. Well it is DNS cache poisoning but you won't get in any trouble because you're poisoning your own dns cache. Not someone else. Simply put: this script (running on your router) simply replaces valid DNS record for known ad servers/hosts (that script obtains from that list i pasted) with dead end effectively preventing your computer from getting data from ad servers. Why? Because you poisoned your own DNS cache :) DNS poisoning is "active" only on your local network so NO you cannot get in trouble for that... you are not attacking anyone... you are simply stopping your computers from reaching ad servers.

    Websites might detect that you aren't loading all the ads, but there is no law that forces you to look or load ads anywhere in the world... so don't worry about it :)

    Hope I clarified stuff, feel free to ask if something else bothers you :)

    P.S. You can follow pixelserv setup for additional coolness :) it's a small binary that acts as a web server on your own router. It's job is to "fill" empty space left after ads are blocked. If you decide to run pixelserv you'll have prettier web-browsing experience :) [no more pesky 404 error pages where ads used to be displayed]
    Jarv0 likes this.
  4. Jarv0

    Jarv0 Serious Server Member

    Really helpful answer. Thank you!

    Yeah if I add new lists to the script, does it matter which order I put them in? I'm particularly interested in adding Easylist.
  5. QSxx

    QSxx LI Guru Member

    No, not really... add it at the end and don't forget to include list number in GETS variable :) Otherwise just adding new SX="..." has no effect
  6. tido

    tido Networkin' Nut Member

    Tried adding all the new hosts posted above, but could only get to S8. When trying to save the changes, was prompted with a warning stating the script was too big. How did you squeeze all the hosts files in the script. Also do you guys have a good URL to test the script with. I've visited http://answers.yahoo.com/ and notices in the right hand column an AD is blocked, I assume it works. Can someone confirm?
  7. Jarv0

    Jarv0 Serious Server Member

    I don't know if it's normal or even recommended, but I also use Adblock Plus with Easylist for Chrome together with the script. If I only use the router script I get those error messages instead of ads (I don't use pixelserv (or w/e it's called)). But Adblock seems to collapse the ad/error message placeholder. Now, I'm just curious to how Adblock detects and collapses the placeholder if the router script have already blocked the ad. Can anyone explain? I just want to know out of curiousity.

Share This Page