{"video_id":"KBXTnrD_Zs4","title":"Block EVERY Online Ad with THIS - Pi-Hole on Raspberry Pi","channel":"Linus Tech Tips","show":"Linus Tech Tips","published_at":"2020-05-05T14:53:29Z","duration_s":963,"segments":[{"start_s":0.32,"end_s":6.319,"text":"okay look i know what you're gonna say Linus","speaker":null,"is_sponsor":0},{"start_s":3.84,"end_s":11.12,"text":"why are you showing me how to block ads that's how you make money","speaker":null,"is_sponsor":0},{"start_s":8.8,"end_s":16.64,"text":"and you would be right youtube's adsense is a big portion of","speaker":null,"is_sponsor":0},{"start_s":14.24,"end_s":21.199,"text":"our revenue here at Linus media group guys if you like this video and you do","speaker":null,"is_sponsor":0},{"start_s":18.72,"end_s":24.48,"text":"deploy the solution please buy a shirt or a hoodie","speaker":null,"is_sponsor":0},{"start_s":22.359,"end_s":27.359,"text":"lttstore.com all right but","speaker":null,"is_sponsor":0},{"start_s":25.519,"end_s":31.119,"text":"we also understand that many of the people who would be determined enough to","speaker":null,"is_sponsor":0},{"start_s":29.199,"end_s":36.0,"text":"set up something like this probably already have some form of ad","speaker":null,"is_sponsor":0},{"start_s":33.6,"end_s":38.64,"text":"blocker probably in their browser so","speaker":null,"is_sponsor":0},{"start_s":37.76,"end_s":45.6,"text":"kit today we're going to show you guys how to set up pi hole a dns based filtering","speaker":null,"is_sponsor":0},{"start_s":43.6,"end_s":51.28,"text":"tool that can be configured to block advertisements tracking and even known","speaker":null,"is_sponsor":0},{"start_s":48.879,"end_s":56.079,"text":"malicious sites and malware on your entire network with this","speaker":null,"is_sponsor":0},{"start_s":54.48,"end_s":62.96,"text":"wow that was a good throw you almost got me a computer so cheap","speaker":null,"is_sponsor":0},{"start_s":59.68,"end_s":65.6,"text":"that i am going to drop it right now","speaker":null,"is_sponsor":0},{"start_s":62.96,"end_s":65.6,"text":"like a mic","speaker":null,"is_sponsor":0},{"start_s":68.08,"end_s":73.84,"text":"speaking of the only one it's been a while since one of our","speaker":null,"is_sponsor":0},{"start_s":71.439,"end_s":78.24,"text":"videos has had just one sponsor like smart deploy with smart deploy you don't","speaker":null,"is_sponsor":0},{"start_s":76.08,"end_s":81.6,"text":"need any on-site it you can deploy images apps and scripts over local","speaker":null,"is_sponsor":0},{"start_s":79.92,"end_s":85.92,"text":"network or the cloud so go to smartdeploy.com Linus and claim your","speaker":null,"is_sponsor":0},{"start_s":84.0,"end_s":93.719,"text":"free licenses worth over seven hundred dollars we'll have that linked below","speaker":null,"is_sponsor":0},{"start_s":96.72,"end_s":103.119,"text":"traditional ad blocking tools like you would find on the chrome store like","speaker":null,"is_sponsor":0},{"start_s":100.4,"end_s":107.119,"text":"adblock or ublocker work from within your web browser they analyze the","speaker":null,"is_sponsor":0},{"start_s":105.2,"end_s":112.0,"text":"incoming data sent to your pc when you load a website and they remove or","speaker":null,"is_sponsor":0},{"start_s":109.52,"end_s":116.0,"text":"replace any content that is recognized as an ad","speaker":null,"is_sponsor":0},{"start_s":113.439,"end_s":119.36,"text":"now this works great for that one browser or maybe even that whole","speaker":null,"is_sponsor":0},{"start_s":118.32,"end_s":124.719,"text":"computer but what about ads on devices that don't","speaker":null,"is_sponsor":0},{"start_s":121.52,"end_s":127.68,"text":"have or allow ad blocking like the","speaker":null,"is_sponsor":0},{"start_s":124.719,"end_s":133.68,"text":"advertisements baked into mobile apps or on your smart tv or even on the google","speaker":null,"is_sponsor":0},{"start_s":130.72,"end_s":137.12,"text":"mobile discover page that is where pihole comes into play so","speaker":null,"is_sponsor":0},{"start_s":135.76,"end_s":141.599,"text":"here's an example you launch a mobile game on your phone","speaker":null,"is_sponsor":0},{"start_s":139.12,"end_s":145.76,"text":"and all the assets required by the game start loading you've got your your","speaker":null,"is_sponsor":0},{"start_s":143.12,"end_s":151.2,"text":"textures your dialogue your music etc well at that same time a request is","speaker":null,"is_sponsor":0},{"start_s":148.64,"end_s":157.44,"text":"being made to the url of the server which manages ads for that app","speaker":null,"is_sponsor":0},{"start_s":154.319,"end_s":160.0,"text":"your routers specified dns provider then","speaker":null,"is_sponsor":0},{"start_s":157.44,"end_s":164.879,"text":"looks up that url and replies to the phone with the ip address of that server","speaker":null,"is_sponsor":0},{"start_s":162.959,"end_s":168.959,"text":"so that it can load the ads now it's done this way rather than just","speaker":null,"is_sponsor":0},{"start_s":167.04,"end_s":174.4,"text":"baking the ads into the app download because among other reasons it allows","speaker":null,"is_sponsor":0},{"start_s":171.76,"end_s":178.8,"text":"advertisers to dynamically serve individually tailored ads even from","speaker":null,"is_sponsor":0},{"start_s":176.879,"end_s":183.36,"text":"multiple providers across multiple servers","speaker":null,"is_sponsor":0},{"start_s":180.239,"end_s":186.56,"text":"what a pie hole does is stand in between","speaker":null,"is_sponsor":0},{"start_s":183.36,"end_s":190.08,"text":"your dns provider and your device","speaker":null,"is_sponsor":0},{"start_s":186.56,"end_s":191.84,"text":"then if pihole has that requested url in","speaker":null,"is_sponsor":0},{"start_s":190.08,"end_s":195.76,"text":"its blacklist rather than forwarding the request along","speaker":null,"is_sponsor":0},{"start_s":193.76,"end_s":199.28,"text":"to your regular dns provider and subsequently connecting you and","speaker":null,"is_sponsor":0},{"start_s":197.36,"end_s":204.0,"text":"whatever's on the other side in this case an ad server","speaker":null,"is_sponsor":0},{"start_s":200.879,"end_s":206.48,"text":"instead piehole stops the request in its","speaker":null,"is_sponsor":0},{"start_s":204.0,"end_s":210.72,"text":"tracks and replies with an unspecified address essentially telling the device","speaker":null,"is_sponsor":0},{"start_s":209.44,"end_s":217.44,"text":"like your phone hey that ad server don't exist sorry","speaker":null,"is_sponsor":0},{"start_s":214.08,"end_s":219.519,"text":"so this is referred to as a dns sinkhole","speaker":null,"is_sponsor":0},{"start_s":217.44,"end_s":223.92,"text":"now at this point depending on how your app or your device's advertisement code","speaker":null,"is_sponsor":0},{"start_s":222.159,"end_s":229.36,"text":"handles errors you'll either be left with no add at all or an error so no ad","speaker":null,"is_sponsor":0},{"start_s":228.159,"end_s":234.56,"text":"or no ad another cool benefit is that once you've","speaker":null,"is_sponsor":0},{"start_s":232.4,"end_s":239.36,"text":"configured it this setup can be applied to practically anything like blocking","speaker":null,"is_sponsor":0},{"start_s":236.959,"end_s":243.84,"text":"known tracking services blacklisting adult sites from users on your network","speaker":null,"is_sponsor":0},{"start_s":241.439,"end_s":246.64,"text":"or even preventing malicious sites or malware from talking to their","speaker":null,"is_sponsor":0},{"start_s":245.12,"end_s":250.72,"text":"controlling server and that all sounds great","speaker":null,"is_sponsor":0},{"start_s":248.56,"end_s":253.76,"text":"but for the less network savvy among you it also probably sounds kind of","speaker":null,"is_sponsor":0},{"start_s":252.56,"end_s":257.84,"text":"complicated so how do you set it up","speaker":null,"is_sponsor":0},{"start_s":256.079,"end_s":262.479,"text":"believe it or not it is simpler than you might think piehole is designed to be","speaker":null,"is_sponsor":0},{"start_s":260.56,"end_s":267.28,"text":"highly compatible and it can work on almost any Linux system in a docker","speaker":null,"is_sponsor":0},{"start_s":264.72,"end_s":271.28,"text":"container or in a vm so long as you point your dns settings to it","speaker":null,"is_sponsor":0},{"start_s":269.28,"end_s":276.0,"text":"most people though deploy it on a cheap embedded computer like this five dollar","speaker":null,"is_sponsor":0},{"start_s":273.919,"end_s":279.759,"text":"raspberry pi zero though so to complete your setup you'll also","speaker":null,"is_sponsor":0},{"start_s":277.6,"end_s":285.36,"text":"need a couple more things a micro sd card a micro usb power supply and a","speaker":null,"is_sponsor":0},{"start_s":282.88,"end_s":288.479,"text":"micro b to Ethernet dongle we're assuming here that you already","speaker":null,"is_sponsor":0},{"start_s":286.8,"end_s":293.12,"text":"have some cardboard to house the pi a way to install the os 2 micro sd card","speaker":null,"is_sponsor":0},{"start_s":290.479,"end_s":297.12,"text":"and an Ethernet cable now even with this setup there are some command line","speaker":null,"is_sponsor":0},{"start_s":295.36,"end_s":303.36,"text":"moments that might be challenging for Linux novices but we've created a full","speaker":null,"is_sponsor":0},{"start_s":300.16,"end_s":305.28,"text":"step-by-step tutorial thanks Jake","speaker":null,"is_sponsor":0},{"start_s":303.36,"end_s":308.88,"text":"on the LTT forum which will be linked in the description below for the rest of","speaker":null,"is_sponsor":0},{"start_s":307.28,"end_s":312.479,"text":"the video we're going to assume you've got raspbian installed you've changed","speaker":null,"is_sponsor":0},{"start_s":310.639,"end_s":316.72,"text":"your default password you've configured a static ip for your pi and you're sshed","speaker":null,"is_sponsor":0},{"start_s":315.6,"end_s":321.44,"text":"into it our next step then is to navigate to the","speaker":null,"is_sponsor":0},{"start_s":318.8,"end_s":325.68,"text":"pi hole website and copy their one line install command run it and work our way","speaker":null,"is_sponsor":0},{"start_s":323.919,"end_s":330.72,"text":"to the networking section we select our default network adapter","speaker":null,"is_sponsor":0},{"start_s":327.6,"end_s":331.759,"text":"eth0 and then our desired upstream dns","speaker":null,"is_sponsor":0},{"start_s":330.72,"end_s":336.84,"text":"provider this is where the pi hole will forward a","speaker":null,"is_sponsor":0},{"start_s":334.16,"end_s":341.36,"text":"request if it's not in any of our blacklists on the subject of blacklist","speaker":null,"is_sponsor":0},{"start_s":338.96,"end_s":344.72,"text":"then the next screen is kinda where the magic happens","speaker":null,"is_sponsor":0},{"start_s":342.72,"end_s":349.039,"text":"it's blackmagic get it yeah it's terrible so here you'll find a","speaker":null,"is_sponsor":0},{"start_s":346.72,"end_s":353.039,"text":"handful of curated blacklists where you can select which one or multiple ones","speaker":null,"is_sponsor":0},{"start_s":351.52,"end_s":356.88,"text":"you'd like to use we're gonna stick with the default as it","speaker":null,"is_sponsor":0},{"start_s":354.639,"end_s":359.919,"text":"seems to work pretty well with minimal false positives depending on your","speaker":null,"is_sponsor":0},{"start_s":358.639,"end_s":365.919,"text":"browsing habits by the way another thing that we've included in the tutorial on the forum is","speaker":null,"is_sponsor":0},{"start_s":363.6,"end_s":369.039,"text":"a great tool for white listing common false positives","speaker":null,"is_sponsor":0},{"start_s":367.44,"end_s":374.96,"text":"next we're going to leave filtering on for both ipv4 and 6 and assuming the","speaker":null,"is_sponsor":0},{"start_s":372.8,"end_s":378.0,"text":"static ip that we specified earlier is the one that pi hole shows on the next","speaker":null,"is_sponsor":0},{"start_s":376.24,"end_s":381.36,"text":"screen we're going to say yes to that as well the rest of the settings like","speaker":null,"is_sponsor":0},{"start_s":379.919,"end_s":386.08,"text":"whether to install the admin panel the web server and the logging mode will be left at default and should for you as","speaker":null,"is_sponsor":0},{"start_s":384.72,"end_s":390.56,"text":"well unless you really know what you're doing now some processing will occur and","speaker":null,"is_sponsor":0},{"start_s":388.96,"end_s":396.24,"text":"bam you will be presented with the password and url for your pi hole admin","speaker":null,"is_sponsor":0},{"start_s":393.28,"end_s":400.8,"text":"panel logging in then reveals a vast array of pages with analytics a list","speaker":null,"is_sponsor":0},{"start_s":399.039,"end_s":405.84,"text":"showing you which devices are using pi hole or not manual white and black","speaker":null,"is_sponsor":0},{"start_s":403.36,"end_s":410.88,"text":"listing and configuration for your mass blacklists it's pretty freaking cool and","speaker":null,"is_sponsor":0},{"start_s":409.12,"end_s":416.56,"text":"really customizable now here's the thing though when you set it","speaker":null,"is_sponsor":0},{"start_s":413.36,"end_s":419.28,"text":"up this way pi hole will still only work","speaker":null,"is_sponsor":0},{"start_s":416.56,"end_s":424.4,"text":"on a device-by-device basis so you will need to manually change your dns","speaker":null,"is_sponsor":0},{"start_s":421.44,"end_s":428.479,"text":"settings on each one of the devices that might be on your network if you want to","speaker":null,"is_sponsor":0},{"start_s":426.4,"end_s":432.479,"text":"kick things up a notch and make it the default for your entire network and","speaker":null,"is_sponsor":0},{"start_s":430.56,"end_s":436.479,"text":"everything on it you will need to change the settings on your router","speaker":null,"is_sponsor":0},{"start_s":434.56,"end_s":440.16,"text":"now to avoid everyone getting mad we won't actually be changing anything on","speaker":null,"is_sponsor":0},{"start_s":438.08,"end_s":444.319,"text":"the office network so we're going to manually point a couple of devices at","speaker":null,"is_sponsor":0},{"start_s":441.84,"end_s":449.199,"text":"our pie hole like this iphone right here and the smart tv behind me both of which","speaker":null,"is_sponsor":0},{"start_s":447.44,"end_s":452.24,"text":"have ads uh so Jake i don't think this tv is","speaker":null,"is_sponsor":0},{"start_s":450.8,"end_s":456.479,"text":"actually going to let us change settings these are the expert settings","speaker":null,"is_sponsor":0},{"start_s":454.88,"end_s":462.56,"text":"this is like the network engineer you get to turn ipv6 on and off","speaker":null,"is_sponsor":0},{"start_s":459.199,"end_s":463.759,"text":"open network settings maybe that one","speaker":null,"is_sponsor":0},{"start_s":462.56,"end_s":467.759,"text":"nope this isn't looking great hey yeah try","speaker":null,"is_sponsor":0},{"start_s":466.479,"end_s":470.16,"text":"that yes","speaker":null,"is_sponsor":0},{"start_s":470.24,"end_s":476.24,"text":"should we we should do it before can we even find an ad on this tv i was looking","speaker":null,"is_sponsor":0},{"start_s":474.0,"end_s":480.16,"text":"earlier and i couldn't find one so oh so maybe they've cleaned up their act a","speaker":null,"is_sponsor":0},{"start_s":477.599,"end_s":484.319,"text":"little bit or yeah they are turned on you can toggle them on this tv but uh","speaker":null,"is_sponsor":0},{"start_s":483.28,"end_s":489.759,"text":"yeah we might just have to go to the internet browser maybe it waits and doesn't like spam you with ads right out","speaker":null,"is_sponsor":0},{"start_s":487.52,"end_s":493.44,"text":"of the box i mean","speaker":null,"is_sponsor":0},{"start_s":490.84,"end_s":496.319,"text":"youtube would probably serve as an ad the thing is","speaker":null,"is_sponsor":0},{"start_s":494.639,"end_s":500.8,"text":"youtube ad blocking with piholt isn't amazing because the url's changed so","speaker":null,"is_sponsor":0},{"start_s":498.08,"end_s":503.919,"text":"much oh interesting um it might work yeah there's an ad in this instance okay","speaker":null,"is_sponsor":0},{"start_s":502.96,"end_s":509.199,"text":"so let's give it a shot that is one thing with pie hole is the urls change on","speaker":null,"is_sponsor":0},{"start_s":507.68,"end_s":513.279,"text":"youtube ads so much and it's completely customizable by you so you would have to","speaker":null,"is_sponsor":0},{"start_s":511.52,"end_s":516.32,"text":"kind of keep track of those video ad urls","speaker":null,"is_sponsor":0},{"start_s":515.039,"end_s":521.2,"text":"and there's probably some repos that are pretty good for it but uh","speaker":null,"is_sponsor":0},{"start_s":518.159,"end_s":524.159,"text":"dope yeah so 77.","speaker":null,"is_sponsor":0},{"start_s":521.2,"end_s":527.519,"text":"oh god oh this is painful to enter i think you can talk to it","speaker":null,"is_sponsor":0},{"start_s":526.08,"end_s":529.76,"text":"yeah that's definitely going to be better","speaker":null,"is_sponsor":0},{"start_s":531.92,"end_s":538.56,"text":"okay you are connected to the internet blippity bloppity and close okay so i'll","speaker":null,"is_sponsor":0},{"start_s":536.32,"end_s":543.76,"text":"pull up the pie hole thing on our laptop here okay let's try another video here","speaker":null,"is_sponsor":0},{"start_s":541.68,"end_s":546.839,"text":"mine is tech tips pc build no dollar wasted pc build guide","speaker":null,"is_sponsor":0},{"start_s":546.839,"end_s":553.76,"text":"nothing 1000 gaming pc build guide","speaker":null,"is_sponsor":0},{"start_s":550.56,"end_s":555.6,"text":"nothing i'm surprised it's working","speaker":null,"is_sponsor":0},{"start_s":553.76,"end_s":558.56,"text":"uh youtube also doesn't serve an ad every time this is true so we might have","speaker":null,"is_sponsor":0},{"start_s":557.44,"end_s":562.56,"text":"to watch for a little while so i'm going to let this video play for a little while so that my viewer satisfaction","speaker":null,"is_sponsor":0},{"start_s":561.12,"end_s":567.12,"text":"seems pretty good actually well you can see if it blocks anything right uh yeah","speaker":null,"is_sponsor":0},{"start_s":565.12,"end_s":571.839,"text":"i just want to look at our user device list here okay so one of these it's","speaker":null,"is_sponsor":0},{"start_s":569.76,"end_s":577.6,"text":"definitely this one this is yeah well 15 queries so","speaker":null,"is_sponsor":0},{"start_s":575.12,"end_s":580.959,"text":"samsung ads blocked look at that whoa i can already see that","speaker":null,"is_sponsor":0},{"start_s":579.16,"end_s":585.36,"text":"ads.samsung.com blocks look at that that's sweet just like that hey","speaker":null,"is_sponsor":0},{"start_s":584.0,"end_s":588.88,"text":"okay well hold on let's see if it grabs let's see if it actually blocks anything","speaker":null,"is_sponsor":0},{"start_s":587.12,"end_s":593.839,"text":"from youtube i haven't gotten any youtube queries yet so","speaker":null,"is_sponsor":0},{"start_s":590.88,"end_s":598.48,"text":"let's try uh let's try a refresher yeah i don't know we haven't got any new","speaker":null,"is_sponsor":0},{"start_s":596.24,"end_s":602.08,"text":"is this an ad the click kind of looks like an ad is this just the video","speaker":null,"is_sponsor":0},{"start_s":600.72,"end_s":606.399,"text":"i don't think so click with the thing what even is this","speaker":null,"is_sponsor":0},{"start_s":604.399,"end_s":610.24,"text":"this is the video oh we kicked luca oh never mind that's just our video this is","speaker":null,"is_sponsor":0},{"start_s":608.08,"end_s":613.44,"text":"just a really weird video yeah all right so i mean","speaker":null,"is_sponsor":0},{"start_s":611.839,"end_s":617.519,"text":"success i guess okay so should we move on to","speaker":null,"is_sponsor":0},{"start_s":616.079,"end_s":622.16,"text":"actually here why don't we do a simple one let's do the pc okay","speaker":null,"is_sponsor":0},{"start_s":619.8,"end_s":625.92,"text":"speedtest.net they're the worst this came to mind as soon as i was looking","speaker":null,"is_sponsor":0},{"start_s":623.839,"end_s":630.16,"text":"for a site that has ads this thing has literally five ads on one page so if we","speaker":null,"is_sponsor":0},{"start_s":628.8,"end_s":634.24,"text":"go down here open network settings go to change","speaker":null,"is_sponsor":0},{"start_s":632.56,"end_s":638.32,"text":"adapter options so if we go to one we're going to do","speaker":null,"is_sponsor":0},{"start_s":636.12,"end_s":641.44,"text":"10.20.0.77 which is our pi hole and i'm not going to set an alternate dns server","speaker":null,"is_sponsor":0},{"start_s":640.0,"end_s":645.76,"text":"because we don't want to you know give it any chances to not use it yeah and","speaker":null,"is_sponsor":0},{"start_s":643.839,"end_s":651.36,"text":"then we close out here i might have to flush our dns but let's just try it","speaker":null,"is_sponsor":0},{"start_s":648.079,"end_s":651.36,"text":"blippity bloppity","speaker":null,"is_sponsor":0},{"start_s":652.32,"end_s":658.399,"text":"oh do we have ipv6 here i'll just turn ipv6 off yeah","speaker":null,"is_sponsor":0},{"start_s":656.64,"end_s":661.839,"text":"there we go all right you're on okay let's try that again","speaker":null,"is_sponsor":0},{"start_s":663.76,"end_s":669.44,"text":"okay wait a minute some of them are down yeah okay so sometimes","speaker":null,"is_sponsor":0},{"start_s":667.6,"end_s":673.92,"text":"ads will get through and then we can take this actual url add","speaker":null,"is_sponsor":0},{"start_s":672.519,"end_s":679.12,"text":"click.g.doubleclick.net let's try to remember that we go blacklist","speaker":null,"is_sponsor":0},{"start_s":676.64,"end_s":681.519,"text":"adding to the blacklist success okay so let's see","speaker":null,"is_sponsor":0},{"start_s":681.92,"end_s":688.24,"text":"wow they're determined they're determined buddies there i think what it is is it's just caching","speaker":null,"is_sponsor":0},{"start_s":686.56,"end_s":691.44,"text":"the dns i don't know how to do this on edge like why is this so why are you","speaker":null,"is_sponsor":0},{"start_s":689.839,"end_s":695.44,"text":"using edge what are you even doing just use chrome all right just right click","speaker":null,"is_sponsor":0},{"start_s":693.36,"end_s":700.48,"text":"chrome open incognito tab okay so here we go there we go in chrome","speaker":null,"is_sponsor":0},{"start_s":697.76,"end_s":705.2,"text":"and it's not working you're done bud no more ads okay so clearly it was just","speaker":null,"is_sponsor":0},{"start_s":702.72,"end_s":711.04,"text":"edge dns caching but uh yeah no more ads on speedtest.net","speaker":null,"is_sponsor":0},{"start_s":707.839,"end_s":713.68,"text":"why don't we move on to the iphone","speaker":null,"is_sponsor":0},{"start_s":711.04,"end_s":716.32,"text":"so on here configuring our dns is again pretty straightforward we're just going","speaker":null,"is_sponsor":0},{"start_s":714.88,"end_s":720.44,"text":"to set it to manual we're going to add a server 10.20.0.77","speaker":null,"is_sponsor":0},{"start_s":721.44,"end_s":726.399,"text":"you need to delete all the other ones and oh dang it yeah i guess that's true","speaker":null,"is_sponsor":0},{"start_s":724.56,"end_s":729.68,"text":"there's so many but well no these were entered by us at some","speaker":null,"is_sponsor":0},{"start_s":728.079,"end_s":734.399,"text":"point these are all like oh yes we would enter so now um actually speed test is","speaker":null,"is_sponsor":0},{"start_s":733.04,"end_s":737.26,"text":"the one that we could check here as well it's an app right so i go ahead i click","speaker":null,"is_sponsor":0},{"start_s":736.48,"end_s":742.72,"text":"go blah blah blah we are doing a speed test","speaker":null,"is_sponsor":0},{"start_s":740.8,"end_s":747.44,"text":"that's actually kind of weak sauce yeah it's not that great look at that no ad","speaker":null,"is_sponsor":0},{"start_s":744.399,"end_s":750.88,"text":"no ad it's gone so in this case we ended","speaker":null,"is_sponsor":0},{"start_s":747.44,"end_s":752.8,"text":"up with the sort of the the blank spot","speaker":null,"is_sponsor":0},{"start_s":750.88,"end_s":756.399,"text":"as opposed to just the element not loading at all because clearly their app","speaker":null,"is_sponsor":0},{"start_s":754.88,"end_s":761.839,"text":"just has like a placeholder yeah","speaker":null,"is_sponsor":0},{"start_s":758.48,"end_s":763.68,"text":"uh oh we should try flappy bird","speaker":null,"is_sponsor":0},{"start_s":761.839,"end_s":767.76,"text":"it's on the bottom there oh i had uh i had actually loaded up a tweak town on","speaker":null,"is_sponsor":0},{"start_s":765.519,"end_s":771.2,"text":"safari this might cache but oh it doesn't look","speaker":null,"is_sponsor":0},{"start_s":769.839,"end_s":775.6,"text":"like it did nope wow they're gone bye dude try flappy","speaker":null,"is_sponsor":0},{"start_s":774.079,"end_s":780.32,"text":"bird because that has like the old school banner ad on the bottom all right","speaker":null,"is_sponsor":0},{"start_s":778.24,"end_s":784.32,"text":"go on it's not even there it's gone even within games","speaker":null,"is_sponsor":0},{"start_s":782.639,"end_s":786.88,"text":"this is pretty cool so one more thing is now that we've been","speaker":null,"is_sponsor":0},{"start_s":785.68,"end_s":791.839,"text":"tooling around with this stuff for a little while um i want to try again and","speaker":null,"is_sponsor":0},{"start_s":789.68,"end_s":797.44,"text":"see if we get a youtube ad so why don't we go with","speaker":null,"is_sponsor":0},{"start_s":793.6,"end_s":800.0,"text":"smallest no compromises laptop","speaker":null,"is_sponsor":0},{"start_s":797.44,"end_s":803.6,"text":"and nothing this is working better than it was before actually you know what","speaker":null,"is_sponsor":0},{"start_s":801.839,"end_s":807.519,"text":"would actually be really cool guys if you liked this video um we should do","speaker":null,"is_sponsor":0},{"start_s":805.92,"end_s":812.399,"text":"that video you suggested a little while back so one of the big problems with not","speaker":null,"is_sponsor":0},{"start_s":810.32,"end_s":818.24,"text":"necessarily youtube on your smart tv but netflix is that they have blocked most","speaker":null,"is_sponsor":0},{"start_s":815.2,"end_s":820.639,"text":"of the major vpn providers so","speaker":null,"is_sponsor":0},{"start_s":818.24,"end_s":826.079,"text":"what they can't block is an individual setting up a us-based yeah a diy vpn","speaker":null,"is_sponsor":0},{"start_s":824.72,"end_s":830.639,"text":"in the us let's do it that they can reroute all their traffic through so i want to do that for like two years okay","speaker":null,"is_sponsor":0},{"start_s":828.8,"end_s":834.16,"text":"so guys make sure you're subscribed we are going to do that video find diy","speaker":null,"is_sponsor":0},{"start_s":832.24,"end_s":839.12,"text":"there you go but other than that i think that's about","speaker":null,"is_sponsor":0},{"start_s":836.16,"end_s":843.04,"text":"it so pie hole super cool tool like aside from ad blocking let's say there's","speaker":null,"is_sponsor":0},{"start_s":840.8,"end_s":847.6,"text":"a site or a domain or a pop-up that looks super spooky or maybe you don't","speaker":null,"is_sponsor":0},{"start_s":845.12,"end_s":852.0,"text":"want your kids seeing or you don't want your employees wasting time with or","speaker":null,"is_sponsor":0},{"start_s":849.839,"end_s":857.6,"text":"whatever the case may be all you do is take a domain plunk it into pie hole and","speaker":null,"is_sponsor":0},{"start_s":855.36,"end_s":862.16,"text":"it's gone across the entire network that is unless your users are savvy enough to","speaker":null,"is_sponsor":0},{"start_s":859.68,"end_s":866.24,"text":"configure their own dns uh on their device in which case you're pretty much","speaker":null,"is_sponsor":0},{"start_s":864.56,"end_s":871.12,"text":"hooped so i think we're gonna change our steam cache to a steam blocker","speaker":null,"is_sponsor":0},{"start_s":868.8,"end_s":875.199,"text":"this total game changer what we don't want to play video games at work you","speaker":null,"is_sponsor":0},{"start_s":872.48,"end_s":879.36,"text":"know so anyway i'm blown away by how much we can do with this computer it's","speaker":null,"is_sponsor":0},{"start_s":878.079,"end_s":886.88,"text":"not that one exactly that's fine it doesn't matter this computer that costs less than your","speaker":null,"is_sponsor":0},{"start_s":883.92,"end_s":890.399,"text":"non-fat half-sugar mocha latte frap or whatever that you got this morning i","speaker":null,"is_sponsor":0},{"start_s":888.56,"end_s":894.0,"text":"guess it shouldn't surprise me that much given how well this thing actually ran a","speaker":null,"is_sponsor":0},{"start_s":892.079,"end_s":898.399,"text":"surveillance server a while back so if you guys are looking for something to watch now you should definitely check","speaker":null,"is_sponsor":0},{"start_s":896.399,"end_s":902.199,"text":"that out that's over here speaking of things you should check out","speaker":null,"is_sponsor":0},{"start_s":900.16,"end_s":907.12,"text":"our sponsor for today's video privacy.com privacy.com is a free easy","speaker":null,"is_sponsor":0},{"start_s":905.279,"end_s":911.12,"text":"to use service that hides your credit card number it works by creating a","speaker":null,"is_sponsor":0},{"start_s":909.279,"end_s":915.76,"text":"virtual card number that is locked to whichever merchant you are shopping at","speaker":null,"is_sponsor":0},{"start_s":912.959,"end_s":920.32,"text":"so even if that merchant gets hacked the bad guys won't be able to just use your","speaker":null,"is_sponsor":0},{"start_s":918.16,"end_s":923.68,"text":"card anywhere they please and if they try you'll actually get a push","speaker":null,"is_sponsor":0},{"start_s":921.92,"end_s":927.44,"text":"notification so that you're always in the loop and you can cancel the card","speaker":null,"is_sponsor":0},{"start_s":925.279,"end_s":930.959,"text":"immediately cards are super simple to set up you just need to create an","speaker":null,"is_sponsor":0},{"start_s":928.959,"end_s":935.68,"text":"account link your virtual cards to your checking account or debit card add a","speaker":null,"is_sponsor":0},{"start_s":933.199,"end_s":938.959,"text":"limit and voila you're all set they've also got a browser extension that","speaker":null,"is_sponsor":0},{"start_s":937.199,"end_s":943.12,"text":"autofills information for you when you're making a purchase and privacy.com","speaker":null,"is_sponsor":0},{"start_s":941.12,"end_s":946.639,"text":"is pci dss compliant they use military-grade encryption to secure your","speaker":null,"is_sponsor":0},{"start_s":944.8,"end_s":951.36,"text":"information and they offer two-factor authentication and since they make money","speaker":null,"is_sponsor":0},{"start_s":948.88,"end_s":956.0,"text":"from merchants there is actually no cost to you so go sign up today you will get","speaker":null,"is_sponsor":0},{"start_s":953.759,"end_s":960.56,"text":"five bucks for free at privacy.com forward slash Linus that's privacy.com","speaker":null,"is_sponsor":0},{"start_s":958.72,"end_s":964.48,"text":"forward slash Linus so thanks for watching guys see ya","speaker":null,"is_sponsor":0}],"full_text":"okay look i know what you're gonna say Linus why are you showing me how to block ads that's how you make money and you would be right youtube's adsense is a big portion of our revenue here at Linus media group guys if you like this video and you do deploy the solution please buy a shirt or a hoodie lttstore.com all right but we also understand that many of the people who would be determined enough to set up something like this probably already have some form of ad blocker probably in their browser so kit today we're going to show you guys how to set up pi hole a dns based filtering tool that can be configured to block advertisements tracking and even known malicious sites and malware on your entire network with this wow that was a good throw you almost got me a computer so cheap that i am going to drop it right now like a mic speaking of the only one it's been a while since one of our videos has had just one sponsor like smart deploy with smart deploy you don't need any on-site it you can deploy images apps and scripts over local network or the cloud so go to smartdeploy.com Linus and claim your free licenses worth over seven hundred dollars we'll have that linked below traditional ad blocking tools like you would find on the chrome store like adblock or ublocker work from within your web browser they analyze the incoming data sent to your pc when you load a website and they remove or replace any content that is recognized as an ad now this works great for that one browser or maybe even that whole computer but what about ads on devices that don't have or allow ad blocking like the advertisements baked into mobile apps or on your smart tv or even on the google mobile discover page that is where pihole comes into play so here's an example you launch a mobile game on your phone and all the assets required by the game start loading you've got your your textures your dialogue your music etc well at that same time a request is being made to the url of the server which manages ads for that app your routers specified dns provider then looks up that url and replies to the phone with the ip address of that server so that it can load the ads now it's done this way rather than just baking the ads into the app download because among other reasons it allows advertisers to dynamically serve individually tailored ads even from multiple providers across multiple servers what a pie hole does is stand in between your dns provider and your device then if pihole has that requested url in its blacklist rather than forwarding the request along to your regular dns provider and subsequently connecting you and whatever's on the other side in this case an ad server instead piehole stops the request in its tracks and replies with an unspecified address essentially telling the device like your phone hey that ad server don't exist sorry so this is referred to as a dns sinkhole now at this point depending on how your app or your device's advertisement code handles errors you'll either be left with no add at all or an error so no ad or no ad another cool benefit is that once you've configured it this setup can be applied to practically anything like blocking known tracking services blacklisting adult sites from users on your network or even preventing malicious sites or malware from talking to their controlling server and that all sounds great but for the less network savvy among you it also probably sounds kind of complicated so how do you set it up believe it or not it is simpler than you might think piehole is designed to be highly compatible and it can work on almost any Linux system in a docker container or in a vm so long as you point your dns settings to it most people though deploy it on a cheap embedded computer like this five dollar raspberry pi zero though so to complete your setup you'll also need a couple more things a micro sd card a micro usb power supply and a micro b to Ethernet dongle we're assuming here that you already have some cardboard to house the pi a way to install the os 2 micro sd card and an Ethernet cable now even with this setup there are some command line moments that might be challenging for Linux novices but we've created a full step-by-step tutorial thanks Jake on the LTT forum which will be linked in the description below for the rest of the video we're going to assume you've got raspbian installed you've changed your default password you've configured a static ip for your pi and you're sshed into it our next step then is to navigate to the pi hole website and copy their one line install command run it and work our way to the networking section we select our default network adapter eth0 and then our desired upstream dns provider this is where the pi hole will forward a request if it's not in any of our blacklists on the subject of blacklist then the next screen is kinda where the magic happens it's blackmagic get it yeah it's terrible so here you'll find a handful of curated blacklists where you can select which one or multiple ones you'd like to use we're gonna stick with the default as it seems to work pretty well with minimal false positives depending on your browsing habits by the way another thing that we've included in the tutorial on the forum is a great tool for white listing common false positives next we're going to leave filtering on for both ipv4 and 6 and assuming the static ip that we specified earlier is the one that pi hole shows on the next screen we're going to say yes to that as well the rest of the settings like whether to install the admin panel the web server and the logging mode will be left at default and should for you as well unless you really know what you're doing now some processing will occur and bam you will be presented with the password and url for your pi hole admin panel logging in then reveals a vast array of pages with analytics a list showing you which devices are using pi hole or not manual white and black listing and configuration for your mass blacklists it's pretty freaking cool and really customizable now here's the thing though when you set it up this way pi hole will still only work on a device-by-device basis so you will need to manually change your dns settings on each one of the devices that might be on your network if you want to kick things up a notch and make it the default for your entire network and everything on it you will need to change the settings on your router now to avoid everyone getting mad we won't actually be changing anything on the office network so we're going to manually point a couple of devices at our pie hole like this iphone right here and the smart tv behind me both of which have ads uh so Jake i don't think this tv is actually going to let us change settings these are the expert settings this is like the network engineer you get to turn ipv6 on and off open network settings maybe that one nope this isn't looking great hey yeah try that yes should we we should do it before can we even find an ad on this tv i was looking earlier and i couldn't find one so oh so maybe they've cleaned up their act a little bit or yeah they are turned on you can toggle them on this tv but uh yeah we might just have to go to the internet browser maybe it waits and doesn't like spam you with ads right out of the box i mean youtube would probably serve as an ad the thing is youtube ad blocking with piholt isn't amazing because the url's changed so much oh interesting um it might work yeah there's an ad in this instance okay so let's give it a shot that is one thing with pie hole is the urls change on youtube ads so much and it's completely customizable by you so you would have to kind of keep track of those video ad urls and there's probably some repos that are pretty good for it but uh dope yeah so 77. oh god oh this is painful to enter i think you can talk to it yeah that's definitely going to be better okay you are connected to the internet blippity bloppity and close okay so i'll pull up the pie hole thing on our laptop here okay let's try another video here mine is tech tips pc build no dollar wasted pc build guide nothing 1000 gaming pc build guide nothing i'm surprised it's working uh youtube also doesn't serve an ad every time this is true so we might have to watch for a little while so i'm going to let this video play for a little while so that my viewer satisfaction seems pretty good actually well you can see if it blocks anything right uh yeah i just want to look at our user device list here okay so one of these it's definitely this one this is yeah well 15 queries so samsung ads blocked look at that whoa i can already see that ads.samsung.com blocks look at that that's sweet just like that hey okay well hold on let's see if it grabs let's see if it actually blocks anything from youtube i haven't gotten any youtube queries yet so let's try uh let's try a refresher yeah i don't know we haven't got any new is this an ad the click kind of looks like an ad is this just the video i don't think so click with the thing what even is this this is the video oh we kicked luca oh never mind that's just our video this is just a really weird video yeah all right so i mean success i guess okay so should we move on to actually here why don't we do a simple one let's do the pc okay speedtest.net they're the worst this came to mind as soon as i was looking for a site that has ads this thing has literally five ads on one page so if we go down here open network settings go to change adapter options so if we go to one we're going to do 10.20.0.77 which is our pi hole and i'm not going to set an alternate dns server because we don't want to you know give it any chances to not use it yeah and then we close out here i might have to flush our dns but let's just try it blippity bloppity oh do we have ipv6 here i'll just turn ipv6 off yeah there we go all right you're on okay let's try that again okay wait a minute some of them are down yeah okay so sometimes ads will get through and then we can take this actual url add click.g.doubleclick.net let's try to remember that we go blacklist adding to the blacklist success okay so let's see wow they're determined they're determined buddies there i think what it is is it's just caching the dns i don't know how to do this on edge like why is this so why are you using edge what are you even doing just use chrome all right just right click chrome open incognito tab okay so here we go there we go in chrome and it's not working you're done bud no more ads okay so clearly it was just edge dns caching but uh yeah no more ads on speedtest.net why don't we move on to the iphone so on here configuring our dns is again pretty straightforward we're just going to set it to manual we're going to add a server 10.20.0.77 you need to delete all the other ones and oh dang it yeah i guess that's true there's so many but well no these were entered by us at some point these are all like oh yes we would enter so now um actually speed test is the one that we could check here as well it's an app right so i go ahead i click go blah blah blah we are doing a speed test that's actually kind of weak sauce yeah it's not that great look at that no ad no ad it's gone so in this case we ended up with the sort of the the blank spot as opposed to just the element not loading at all because clearly their app just has like a placeholder yeah uh oh we should try flappy bird it's on the bottom there oh i had uh i had actually loaded up a tweak town on safari this might cache but oh it doesn't look like it did nope wow they're gone bye dude try flappy bird because that has like the old school banner ad on the bottom all right go on it's not even there it's gone even within games this is pretty cool so one more thing is now that we've been tooling around with this stuff for a little while um i want to try again and see if we get a youtube ad so why don't we go with smallest no compromises laptop and nothing this is working better than it was before actually you know what would actually be really cool guys if you liked this video um we should do that video you suggested a little while back so one of the big problems with not necessarily youtube on your smart tv but netflix is that they have blocked most of the major vpn providers so what they can't block is an individual setting up a us-based yeah a diy vpn in the us let's do it that they can reroute all their traffic through so i want to do that for like two years okay so guys make sure you're subscribed we are going to do that video find diy there you go but other than that i think that's about it so pie hole super cool tool like aside from ad blocking let's say there's a site or a domain or a pop-up that looks super spooky or maybe you don't want your kids seeing or you don't want your employees wasting time with or whatever the case may be all you do is take a domain plunk it into pie hole and it's gone across the entire network that is unless your users are savvy enough to configure their own dns uh on their device in which case you're pretty much hooped so i think we're gonna change our steam cache to a steam blocker this total game changer what we don't want to play video games at work you know so anyway i'm blown away by how much we can do with this computer it's not that one exactly that's fine it doesn't matter this computer that costs less than your non-fat half-sugar mocha latte frap or whatever that you got this morning i guess it shouldn't surprise me that much given how well this thing actually ran a surveillance server a while back so if you guys are looking for something to watch now you should definitely check that out that's over here speaking of things you should check out our sponsor for today's video privacy.com privacy.com is a free easy to use service that hides your credit card number it works by creating a virtual card number that is locked to whichever merchant you are shopping at so even if that merchant gets hacked the bad guys won't be able to just use your card anywhere they please and if they try you'll actually get a push notification so that you're always in the loop and you can cancel the card immediately cards are super simple to set up you just need to create an account link your virtual cards to your checking account or debit card add a limit and voila you're all set they've also got a browser extension that autofills information for you when you're making a purchase and privacy.com is pci dss compliant they use military-grade encryption to secure your information and they offer two-factor authentication and since they make money from merchants there is actually no cost to you so go sign up today you will get five bucks for free at privacy.com forward slash Linus that's privacy.com forward slash Linus so thanks for watching guys see ya"}