Download ArticleDownload Article

This How.com.vn teaches you how to prevent anyone from going to Yahoo.com in any web browser on your computer, phone, or tablet. The most straightforward way to truly block the website is to do so by editing a special file on your computer called the "hosts" file. If you're blocking the site for a child, you can use the parental controls built in to your iPhone, iPad, Android, or Chromebook. If you just want to prevent yourself from viewing the site, consider using a browser plugin like BlckSite

Method 1
Method 1 of 4:

Blocking for All Computer Users (Windows)

Download Article
  1. How.com.vn English: Step 1 Press ⊞ Win+S.
    This opens the Windows Search bar.
  2. How.com.vn English: Step 2 Type notepad into the search.
    Don't press anything afterwards—just type the word into the box.
    Advertisement
  3. How.com.vn English: Step 3 Right-click Notepad in the search results.
    A menu will expand.
  4. How.com.vn English: Step 4 Click Run as administrator.
    If prompted by your security settings, click Yes to continue.
  5. How.com.vn English: Step 5 Click the File menu and select Open.
    This opens the file browser.
  6. How.com.vn English: Step 6 Navigate to the folder that contains your hosts file.
    The folder is C:\Windows\System32\drivers\etc. To get there, do the following steps:
    • Double-click the C: drive (unless Windows is installed on a different drive). If you don't see it, click This PC first.
    • Double-click the System32 folder.
    • Double-click the drivers folder.
    • Double-click the etc folder.
  7. How.com.vn English: Step 7 Select All Files from the drop-down menu.
    The menu is that the bottom-right corner of the window.
  8. How.com.vn English: Step 8 Allow the host file to be edited.
    Here's how:
    • Right-click the hosts file and select Properties.
    • Click the Security tab.
    • Click the Edit button.
    • Check the "Allow" box next to Full Control.
    • Click OK and then Yes.
    • Click OK to close the window.
  9. How.com.vn English: Step 9 Select the hosts file and click Open.
    The file is now open for editing.
  10. How.com.vn English: Step 10 Use the arrow keys to scroll down to the first empty line.
    You'll need to type something on the first empty line, so make sure you're below the existing entries.
  11. How.com.vn English: Step 11 Type the following into the file.
    • On the first empty line, type 127.0.0.1, press the Tab key, and then type www.yahoo.com
    • Press the Enter key to go to the next line.
    • Type 127.0.0.1, press the Tab key, and then type yahoo.com.
    • If you want to block Yahoo Mail as well, press Enter to go to the next line, type 127.0.0.1, press Tab, and then type mail.yahoo.com.
  12. How.com.vn English: Step 12 Click the File menu and select Save.
    This saves your changes to the hosts file.
  13. How.com.vn English: Step 13 Restart your PC.
    After editing the hosts file, click the Start menu, click the Power menu, and select the option to Restart. When your PC comes back up, nobody will be able to access Yahoo on the web using any web browser.
  14. Advertisement
Method 2
Method 2 of 4:

Blocking for All Computer Users (macOS)

Download Article
  1. How.com.vn English: Step 1 Open the Terminal app on your Mac.
    You can do this by typing terminal into the Spotlight search bar and selecting Terminal from the search results. You can also open Terminal by double-clicking its icon in Finder under Applications > Utilities.
    • This method will prevent you (and anyone else who uses your Mac) from accessing Yahoo from all browser and other apps.[1]
  2. How.com.vn English: Step 2 Type sudo nano /etc/hosts and press ⏎ Return.
    You will be prompted to enter your password.
  3. How.com.vn English: Step 3 Enter your password and press ⏎ Return.
    Now that you've confirmed your password, a special file called a Hosts file will open in a text editor called Nano.
  4. How.com.vn English: Step 4 Use the arrow keys to scroll down to the first empty line.
    You'll need to type something on the first empty line, so make sure you're below the existing entries.
  5. How.com.vn English: Step 5 Type the following into the file.
    • On the first empty line, type 127.0.0.1, press the Tab key, and then type www.yahoo.com
    • Press the Return key to go to the next line.
    • Type 127.0.0.1, press the Tab key, and then type yahoo.com.
    • If you want to block Yahoo Mail as well, press Return to go to the next line, type 127.0.0.1, press Tab, and then type mail.yahoo.com.
  6. How.com.vn English: Step 6 Press Control+O.
    This saves your changes to the file.
  7. How.com.vn English: Step 7 Press Control+X.
    This exits Nano. You can now close the Terminal window by clicking the red circle at the top.
  8. How.com.vn English: Step 8 Type sudo dscacheutil -flushcache and press ⏎ Return.
    This refreshes your network settings so Yahoo will be blocked immediately.
    • If you ever want to unblock Yahoo, you can repeat these steps, except instead of adding more lines, you'll just remove the two lines you added.
  9. Advertisement
Method 3
Method 3 of 4:

Blocking with Parental Controls (iPhone/iPad)

Download Article
  1. How.com.vn English: Step 1 Open your iPhone's Settings icon.
    You'll find the gear icon on your home screen or in the app library.
    • You can use Apple's built-in content filtering to prevent a child from going to Yahoo on the phone or tablet. To do this, you'll need to also block access to adult websites.
  2. How.com.vn English: Step 2 Tap Screen Time.
    It's the hourglass icon.
  3. How.com.vn English: Step 3 Enable Screen Time if you haven't already.
    If Screen Time is already on, you'll see some stats about usage. If not, tap Turn On Screen Time to enable it now. Then perform the following steps:
    • Tap Continue.
    • Tap This is My Child's iPhone.
    • Tap Not Now twice.
    • Tap Continue.
    • Enter and confirm a new passcode. This will be used to edit your screen time settings, including settings for content filtering.
    • Follow the on-screen instructions to enable screen time.
  4. How.com.vn English: Step 4 Tap Content & Privacy Restrictions.
    It's toward the bottom.
  5. How.com.vn English: Step 5 Tap Content Restrictions.
    It's near the top.
  6. How.com.vn English: Step 6 Tap Web Content.
    It's near the middle of the menu.
  7. How.com.vn English: Step 7 Select Limit Adult Websites.
    This expands more options below.
  8. Step 8 Add Yahoo to the list of "Never Allow" websites.
    As soon as you add a site to this list, anyone who tries to view it in a web browser on this iPhone or iPad will see a "Restricted" error. To bypass the restriction, they'll need to enter the Screen Time PIN. To add Yahoo to the list:
    • Tap Add Website under "Never Allow."
    • Type www.yahoo.com and tap done.
    • Repeat those steps for yahoo.com and mail.yahoo.com (if you want to block Yahoo mail too).
  9. How.com.vn English: Step 9 Tap the back button to return to Content & Privacy Restrictions.
    Now that you've blocked the website, you can either stop here, or continue if you want to prevent your child (or other person) from downloading any Yahoo-related apps from the App Store.
    • Keep in mind that the child will not be able to download any apps, not just Yahoo.
  10. How.com.vn English: Step 10 Tap iTunes & App Store Purchases.
    It's near the top.
  11. How.com.vn English: Step 11 Select Always Require.
    This ensures that the person using the phone or tablet will not be able to install apps unless they have your Screen Time password.
  12. Advertisement
Method 4
Method 4 of 4:

Blocking with Parental Controls (Android or Chromebook)

Download Article
  1. How.com.vn English: Step 1 Open the Family Link app on your Android or Chromebook.
    If you manage a child's account and don't want them visiting Yahoo or any Yahoo-affiliated sites (such as Yahoo Mail), you can block the site in the Family Link app.
    • The Family Link app has a blue, green, and yellow shield icon and you'll find it in your app list.
    • If you don't have the Family Link app on your Android or Chromebook, you can get it from the Play Store, or just go to https://g.co/YourFamily and sign in.
  2. How.com.vn English: Step 2 Select the account you want to block Yahoo for.
    This opens that account's settings.[2]
  3. How.com.vn English: Step 3 Tap Manage settings on the Settings card.
    More settings will expand.
  4. How.com.vn English: Step 4 Tap Filters on Google Chrome.
  5. How.com.vn English: Step 5 Tap Manage Sites.
  6. How.com.vn English: Step 6 Tap Blocked.
    If any sites are already blocked, they will appear here.
  7. How.com.vn English: Step 7 Tap Add an exception.
    Now you'll be able to enter the address of the site you want to block.
  8. How.com.vn English: Step 8 Add any Yahoo URLs you want to block.
    If you just want to block the main Yahoo website, enter www.yahoo.com and yahoo.com. If you also want to block Yahoo Mail, enter mail.yahoo.com as well.
  9. How.com.vn English: Step 9 Tap the X after you're done making changes.
    The changes will take effect immediately.
    • Since you're blocking the website in user's Google account, it will affect their browsing anywhere they sign in.
  10. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      How.com.vn English: Nicole Levine, MFA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for How.com.vn. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 133,221 times.
      How helpful is this?
      Co-authors: 18
      Updated: July 6, 2021
      Views: 133,221
      Categories: Internet
      Article SummaryX

      1.Open Notepad as an administrator.
      2.Open C:\Windows\System32\drivers\etc.
      3.Make the hosts file editable.
      4.Select hosts and click Open.
      5.Route each Yahoo address you want to block to 127.0.0.1.
      6.Save the file and restart your PC.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 133,221 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement