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

    • Voice Simulator & Content Creation with AI-Generated Voices
      Voice Simulator & Content Creation with AI-Generated Voices
      Arrow
    • Convert Audio and Video to Text: Transcription Has Never Been Easier.
      Convert Audio and Video to Text: Transcription Has Never Been Easier.
      Arrow
    • How to Record Voice Overs Properly Over Gameplay: Everything You Need to Know
      How to Record Voice Overs Properly Over Gameplay: Everything You Need to Know
      Arrow
    • Voicemail Greeting Generator: The New Way to Engage Callers
      Voicemail Greeting Generator: The New Way to Engage Callers
      Arrow
    • How to Avoid AI Voice Scams
      How to Avoid AI Voice Scams
      Arrow
    • Character AI Voices: Revolutionizing Audio Content with Advanced Technology
      Character AI Voices: Revolutionizing Audio Content with Advanced Technology
      Arrow
    • Best AI Voices for Video Games
      Best AI Voices for Video Games
      Arrow
    • How to Monetize YouTube Channels with AI Voices
      How to Monetize YouTube Channels with AI Voices
      Arrow
    • Multilingual Voice API: Bridging Communication Gaps in a Diverse World
      Multilingual Voice API: Bridging Communication Gaps in a Diverse World
      Arrow
    • Resemble.AI vs ElevenLabs: A Comprehensive Comparison
      Resemble.AI vs ElevenLabs: A Comprehensive Comparison
      Arrow
    • Apps to Read PDFs on Mobile and Desktop
      Apps to Read PDFs on Mobile and Desktop
      Arrow
    • How to Convert a PDF to an Audiobook: A Step-by-Step Guide
      How to Convert a PDF to an Audiobook: A Step-by-Step Guide
      Arrow
    • AI for Translation: Bridging Language Barriers
      AI for Translation: Bridging Language Barriers
      Arrow
    • IVR Conversion Tool: A Comprehensive Guide for Healthcare Providers
      IVR Conversion Tool: A Comprehensive Guide for Healthcare Providers
      Arrow
    • Best AI Speech to Speech Tools
      Best AI Speech to Speech Tools
      Arrow
    • AI Voice Recorder: Everything You Need to Know
      AI Voice Recorder: Everything You Need to Know
      Arrow
    • The Best Multilingual AI Speech Models
      The Best Multilingual AI Speech Models
      Arrow
    • Program that will Read PDF Aloud: Yes it Exists
      Program that will Read PDF Aloud: Yes it Exists
      Arrow
    • How to Convert Your Emails to an Audiobook: A Step-by-Step Tutorial
      How to Convert Your Emails to an Audiobook: A Step-by-Step Tutorial
      Arrow
    • How to Convert iOS Files to an Audiobook
      How to Convert iOS Files to an Audiobook
      Arrow
    • How to Convert Google Docs to an Audiobook
      How to Convert Google Docs to an Audiobook
      Arrow
    • How to Convert Word Docs to an Audiobook
      How to Convert Word Docs to an Audiobook
      Arrow
    • Alternatives to Deepgram Text to Speech API
      Alternatives to Deepgram Text to Speech API
      Arrow
    • Is Text to Speech HSA Eligible?
      Is Text to Speech HSA Eligible?
      Arrow
    • Can You Use an HSA for Speech Therapy?
      Can You Use an HSA for Speech Therapy?
      Arrow
    • Surprising HSA-Eligible Items
      Surprising HSA-Eligible Items
      Arrow
    • Ultimate guide to ElevenLabs
      Ultimate guide to ElevenLabs
      Arrow
    • Voice changer for Discord
      Voice changer for Discord
      Arrow
    • How to download YouTube audio
      How to download YouTube audio
      Arrow
    • Speechify 3.0 Released.
      Speechify 3.0 is the Best Text to Speech App Yet.
      Arrow
    • Speechify 3.0 Released.
      The Best Celebrity Voice Generators in 2024
      Arrow
    • Speechify 3.0 Released.
      YouTube Text to Speech: Elevating Your Video Content with Speechify
      Arrow
    • Speechify 3.0 Released.
      The 7 best alternatives to Synthesia.io
      Arrow
    • Speechify 3.0 Released.
      Everything you need to know about text to speech on TikTok
      Arrow
    • Speechify 3.0 Released.
      The 10 best text-to-speech apps for Android
      Arrow
    • Speechify 3.0 Released.
      How to convert a PDF to speech
      Arrow
    • Speechify 3.0 Released.
      The top girl voice changers
      Arrow
    • Speechify 3.0 Released.
      How to use Siri text to speech
      Arrow
    • Speechify 3.0 Released.
      Obama text to speech
      Arrow
    • Speechify 3.0 Released.
      Robot Voice Generators: The Futuristic Frontier of Audio Creation
      Arrow
    • Speechify 3.0 Released.
      PDF Read Aloud: Free & Paid Options
      Arrow
    • Speechify 3.0 Released.
      Alternatives to FakeYou text to speech
      Arrow
    • Speechify 3.0 Released.
      All About Deepfake Voices
      Arrow
    • Speechify 3.0 Released.
      TikTok voice generator
      Arrow
    • Speechify 3.0 Released.
      Text to speech GoAnimate
      Arrow
    • Speechify 3.0 Released.
      The best celebrity text to speech voice generators
      Arrow
    • Speechify 3.0 Released.
      PDF Audio Reader
      Arrow
    • Speechify 3.0 Released.
      How to get text to speech Indian voices
      Arrow
    • Speechify 3.0 Released.
      Elevating Your Anime Experience with Anime Voice Generators
      Arrow
    • Speechify 3.0 Released.
      Best text to speech online
      Arrow
    • Speechify 3.0 Released.
      Top 50 movies based on books you should read
      Arrow
    • Speechify 3.0 Released.
      Download audio
      Arrow
    • Speechify 3.0 Released.
      How to use text-to-speech for Quandale Dingle meme sounds
      Arrow
    • Speechify 3.0 Released.
      Top 5 apps that read out text
      Arrow
    • Speechify 3.0 Released.
      The top female text to speech voices
      Arrow
    • Speechify 3.0 Released.
      Female voice changer
      Arrow
    • Speechify 3.0 Released.
      Sonic text to speech voice generator online
      Arrow
    • Speechify 3.0 Released.
      Best AI voice generators – The Ultimate List
      Arrow
    • Speechify 3.0 Released.
      Voice changer
      Arrow
    • Speechify 3.0 Released.
      Text to speech in Powerpoint
      Arrow
    footer-waves