Block Ads With Your Router by Using Ad-blocking DNS Servers




Ad blocking extensions are great for individual browsers but leave out other devices and applications. Set up a router-level DNS filter to block ads for every device on your home network.

By setting your router to block ads you can enjoy ad free browsing on:

  • Hulu
  • In-app mobile games and apps
  • iPad and tablet browsers

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: The Setup

To do this, just access your router’s web interface — how you do this will depend on which router you have. If you’re not sure how to do this, you’ll probably want to glance at your router’s manual to see instructions and learn the default password you’ll need.

Once there, you’ll probably find a DNS option on one of the pages. Change this and the setting will affect your entire network. If you’re having trouble finding the option, search your router’s manual or perform a Google search for your model of router and “change DNS.”

Use the following DNS servers:



That's it! Now just connect any device you need ads blocked on to your router and enjoy the lack of ads.

DNS Servers hosted by Alternate DNS.



    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    10 Discussions


    1 year ago

    I was using this for my TV with built-in YouTube but have been seeing ads crop up for a week or so. I'm guessing YouTube is now serving ads from its content servers. I don't suppose there's a way around this but just posting in case anyone knows anything.

    2 replies

    Reply 10 months ago

    I use the dns directly on my tv and the first server was showing ads again but the second is working and blocks the ads again.


    Reply 12 months ago

    Unfortunately I am enduring the same issue... All other ads remained blocked however.
    If you are using an android device, you can get rid of the ad problem using a Youtube alternative app called Newpipe. To get it you need the download the app store called Fdroid. Google it and go to their website, install it to your device and from there you can download open source apps that cannot be found on the regular android app store.
    You can use this app to download videos, audio, play in background, or pop-up screen.

    How this helps anyone!!!


    1 year ago

    Hi Folks, the 2nd DNS number does not work this morning. Is there a replacement for it?


    1 year ago

    If we had some kind of guarantee that one of the "ads" wasn't a malicious drive-by payload delivery instead, I'm sure the drive to block ads wouldn't be so strong right now.
    As it is, being forced to watch a 1 minute ad before a 20 second clip on YouTube, or always having to watch my back for sneaky download attempts, or worse yet, being suddenly redirected to yet another "Congratulations, you won" page, means I'll go out of my way to smash all advertising flat on my networks.

    If advertisers want to monetize my visit, they darn well better step up to make sure their content is safe too. Would you visit a mall where any ad signage could have a guy with a loaded gun hiding behind it, picking targets that look at the sign at random? That's (metaphorically speaking) what the Web has become to most users today.

    As such, I'll be locking them out until they clean up their act. Sadly, most are too busy raking in cash to care how their networks are being abused, so I choose to ensure they get as little cash off of my visit as possible until they get the point.


    1 year ago

    Hey, thanks for this, but the DNS setting won't allow video streaming on sites such as

    Is there a 'fix' for that?


    2 years ago


    FB, Youtube, Google - and the likes makes money from selling raw and analyzed data on users to private entities that in many cases use that data to ploy on how to better sell useless stuff.


    3 years ago

    You know that most free sites only remain alive becouse of Ads right ?

    Sites like instructables, facebook, youtube, GOOGLE (the website u mentioned on the post), etc... and we all use them (freely) on a daily basis... is it that frustrating to look at a couple of Ads ?

    Just my 2 cents !

    1 reply

    Reply 3 years ago

    Couple of ads is the understatment of the year..... The internet is crawling with ads...

    See video for more info.


    3 years ago

    To dergott

    To say that it is just a couple of Ads is like trying to cover the sun with your finger, I do understand that a lot of people make a living advertising but I am free to choose if I want to see their ads or not specially nowadays that they are running rampant. Just look at a webpage before and after ad-blocking and you will see the difference, no much argument against blocking after that.