How to block YouTube on a computer

Featured in

    If YouTube has become too distracting, you can resolve the issue by blocking the site on your computer. Read on to find out how.

    How to block YouTube on a computer

    Why block YouTube?

    Today, you’d be hard-pressed to find a computer browser without a bookmark for www.youtube.com, whether on Windows, Mac, iPhone, or Android devices. Even with new additions to the scene like TikTok, the YouTube website is still going strong.

    However, there are reasons why you might want to block the YouTube app from your system. Firstly, not every YouTube channel has tasteful videos. Although the platform goes to great lengths to ensure its content is family-friendly, many videos still slip through the system. Inappropriate content can happen even on YouTube Kids, a section of the site exclusively for children.

    Apart from possible adult content, YouTube videos can become a massive distraction. Imagine you open YouTube, and soon enough, you’ve binged hours of content. For many people, blocking the site is the most efficient, if not the only, way to deal with this issue.

    Different ways to block YouTube on your computer

    Whether you’re on a Chromebook, Apple, or Windows computer, you can employ a range of tools to block YouTube. From host tinkering to dedicated apps, here are the best ways to make YouTube disappear from your computer.

    Edit the Hosts file

    This method is a bit in-depth, but it functions on Windows and Mac computers and works for any web browser.

    Locate the “Hosts” file on your computer. On Windows, it will be in C:windowssystem32, in the “Drivers” folder under “etc.” On Mac, it will be under privateetchosts.

    Open the “Hosts” file – you’ll need software for text documents, such as Notepad. Then, enter the IP address 127.0.0.1, press “Tab,” and type in “youtube.com.” For Google Chrome browsers, enter the same numbers, hit “Space,” then type “www.youtube.com.”

    You can do the same for the mobile version of the site since that one will pop up on your computer, too. To block that version, repeat the same process but enter “m.youtube.com” instead of the regular address.

    Once you’ve made the edits, save the file (press “Save,” not “Save As”) and restart your computer. After the system reboots, YouTube will be blocked on all browsers, including Firefox, Chrome, Safari, and Edge.

    Change the DNS settings

    You can adjust your DNS to allow you to block sites on the computer. Go to the following settings page:

    • On Windows: Network Connections > Change adapter options. Right-click your network, select “Properties” from the drop-down menu, go to “Internet Protocol Version 4 (TCP/IPv4),” then to “Properties” again.

    • On Mac: System Preferences > Network. Choose your network, click “Advanced,” and go to the “DNS” tab.

    You’ll need to enter the following DNS addresses on either system: 208.67.222.222 and 208.67.220.220. This will change your settings to OpenDNS.

    To activate OpenDNS, you’ll need to create an account online by visiting their website. After that, you’ll find website blocking options in the OpenDNS settings. Choose to block all video-sharing sites and YouTube will be blocked. You can also use OpenDNS to block other site categories like social media.

    Use browser extensions

    If the first two methods sound too complex, there’s an easier way. You can use a blocker app for your browser of choice. Try apps like Freedom, Cold Turkey Blocker, SelfControl, Friday, or RescueTime. Note that some apps create permanent changes and don’t allow you to unblock sites on their lists.

    Use Screen Time (Mac)

    Mac computers have a Screen Time function (previously Parental Control) for website blocking. Go to System Preferences to find this option. Then, create an account and add the YouTube address to Screen Time.

    Of course, you can add more sites to the list and the app will block them. Note that Screen Time will work on Safari exclusively and won’t apply to other browsers.

    Make sure to block YouTube on your phone, too

    If you only block YouTube on your computer, the distraction will still be there on your mobile devices. Luckily, you can find the appropriate apps on the Google Play Store for Android devices or the App Store for iPhones or iPads.

    Speechify – an alternative to YouTube

    If you’ve grown accustomed to YouTube, the change might seem strange. However, you can find a better way to make your time online fun, enjoyable, and productive. All you’ll need is a quality text to speech tool.

    Speechify is an unparalleled text to speech engine that will read any text aloud, including web pages, text documents, written pages, and more. The platform also has extensive customization options, allowing you to choose from various narrator voices and adjust the reading speed.

    As soon as you sign up for Speechify, you can start uploading texts and picking your options. The service will become your go-to solution and provide all of the advantages of text to speech. In particular, you’ll benefit from easier text reading without tiring your eyes, a more immersive experience, and improved focus.

    Best of all, you can try Speechify for free right now. Go to the official website and sign up to hear the text to speech engine in action.

    FAQ

    How can I block YouTube?

    There are several ways to block YouTube. You can edit the hosts file, tweak your router settings, or use website-blocking apps.

    How do you block websites on a computer?

    Computers allow you to adjust host commands and effectively block YouTube on the entire computer, be it Windows or Mac. However, if you want to avoid technicalities, you can use a website blocker.

    How do I block YouTube on all browsers on my laptop?

    The same methods that apply to computers will work on laptops. Additionally, since a laptop will likely connect to the internet via Wi-Fi, you can use wireless settings to block websites, including YouTube.

    How do I block YouTube on the computer?

    You will block YouTube by adding it to the blacklist of your settings or app of choice.

    What are some ways to block YouTube?

    In essence, blocking YouTube is the same as blocking any other site. Employ host commands or blocking apps on your computer, or get a mobile app for Android or iOS devices.

    Cliff Weitzman

    Cliff Weitzman

    Cliff Weitzman is a dyslexia advocate and the CEO and founder of Speechify, the #1 text-to-speech app in the world, totaling over 100,000 5-star reviews and ranking first place in the App Store for the News & Magazines category. In 2017, Weitzman was named to the Forbes 30 under 30 list for his work making the internet more accessible to people with learning disabilities. Cliff Weitzman has been featured in EdSurge, Inc., PC Mag, Entrepreneur, Mashable, among other leading outlets.

    Dyslexia & Accessibility Advocate, CEO/Founder of Speechify Dyslexia & Accessibility Advocate, CEO/Founder of Speechify

    Recent Blogs

    • Founder and CEO Cliff Weitzman talks about AI and the history of Speechify on The Pomp Podcast
      Founder and CEO Cliff Weitzman talks about AI and the history of Speechify on The Pomp Podcast
      Arrow
    • Speechify founder discusses future of AI with the Everyday AI podcast
      Speechify founder discusses future of AI with the Everyday AI podcast
      Arrow
    • Define Videos: Unraveling the World of Moving Images and Digital Content
      Define Videos: Unraveling the World of Moving Images and Digital Content
      Arrow
    • How to make your MP3 louder: audio enhancement
      How to make your MP3 louder: audio enhancement
      Arrow
    • Decoding the wonders of Google Translate for the Chinese language
      Decoding the wonders of Google Translate for the Chinese language
      Arrow
    • Understanding the rich history of the Pennsylvania Dutch language
      Understanding the rich history of the Pennsylvania Dutch language
      Arrow
    • Navigating language diversity with the Holland language Dutch
      Navigating language diversity with the Holland language Dutch
      Arrow
    • The French language is spoken in which countries
      The French language is spoken in which countries
      Arrow
    • What you should know about the French Language
      What you should know about the French Language
      Arrow
    • Unlocking fluency with a guide to French Language Lessons
      Unlocking fluency with a guide to French Language Lessons
      Arrow
    • Understand the diversity of Chinese languages
      Understand the diversity of Chinese languages
      Arrow
    • How to get audio reading free of charge online
      How to get audio reading free of charge online
      Arrow
    • The 5 best Scottish accent generators
      The 5 best Scottish accent generators
      Arrow
    • The 5 best essay readers for enhanced reading and learning
      The 5 best essay readers for enhanced reading and learning
      Arrow
    • A comprehensive guide to French accents copy and paste 
      A comprehensive guide to French accents copy and paste 
      Arrow
    • Improve your pronunciation: a guide from English to IPA
      Improve your pronunciation: a guide from English to IPA
      Arrow
    • Language learning made easy: IPA to English 
      Language learning made easy: IPA to English 
      Arrow
    • A guide to mastering text and reading
      A guide to mastering text and reading
      Arrow
    • What to know about the Ukrainian language
      What to know about the Ukrainian language
      Arrow
    • Discovering the Vietnamese Language
      Discovering the Vietnamese Language
      Arrow
    • Exploring language translation: from Vietnamese to many others
      Exploring language translation: from Vietnamese to many others
      Arrow
    • Understanding Hindi: India’s special language
      Understanding Hindi: India’s special language
      Arrow
    • Discovering the Czech Language: the heart of Czechia
      Discovering the Czech Language: the heart of Czechia
      Arrow
    • Discovering the languages of Lithuania
      Discovering the languages of Lithuania
      Arrow
    • The Hindi language: India’s linguistic heartbeat
      The Hindi language: India’s linguistic heartbeat
      Arrow
    • Ukrainian language vs Russian language: explore the differences
      Ukrainian language vs Russian language: explore the differences
      Arrow
    • The Ukrainian Language: its history and culture
      The Ukrainian Language: its history and culture
      Arrow
    • Explore the world of TTS testing: enhancing Text-to-Speech technology
      Explore the world of TTS testing: enhancing Text-to-Speech technology
      Arrow
    • Embracing the future children’s literacy: exploring Google’s Read Along app
      Embracing the future children’s literacy: exploring Google’s Read Along app
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Boost creativity with text font generators: a guide to text copy
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The Best Celebrity Voice Generators in 2023
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      YouTube Text to Speech: Elevating Your Video Content with Speechify
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The 7 best alternatives to Synthesia.io
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Everything you need to know about text to speech on TikTok
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The 10 best text-to-speech apps for Android
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      How to convert a PDF to speech
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The top girl voice changers
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      How to use Siri text to speech
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Obama text to speech
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Robot Voice Generators: The Futuristic Frontier of Audio Creation
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      PDF Read Aloud: Free & Paid Options
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Alternatives to FakeYou text to speech
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      All About Deepfake Voices
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      TikTok voice generator
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Text to speech GoAnimate
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The best celebrity text to speech voice generators
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      PDF Audio Reader
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      How to get text to speech Indian voices
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Elevating Your Anime Experience with Anime Voice Generators
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Best text to speech online
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Top 50 movies based on books you should read
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Download audio
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      How to use text-to-speech for Quandale Dingle meme sounds
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Top 5 apps that read out text
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      The top female text to speech voices
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Female voice changer
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Sonic text to speech voice generator online
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Best AI voice generators – The Ultimate List
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Voice changer
      Arrow
    • Boost creativity with text font generators: a guide to text copy
      Text to speech in Powerpoint
      Arrow
    footer-waves