PDF download Download Article PDF download Download Article

This wikiHow 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

Quick Guide: Blocking Yahoo.com

  1. Open Notepad as an administrator.
  2. Open "C:\Windows\System32\drivers\etc" in Notepad.
  3. Allow the hosts file to be edited and open it.
  4. Add 127.0.0.1 to the first three open lines.
  5. Click Tab after each IP address.
  6. Add "www.yahoo.com", "yahoo.com" and "mail.yahoo.com" after the tabs.
  7. Save the file and restart your PC.
Method 1
Method 1 of 4:

Blocking for All Computer Users (Windows)

PDF download Download Article
  1. This opens the Windows Search bar.
  2. Don't press anything afterwards—just type the word into the box.
    Advertisement
  3. A menu will expand.
  4. If prompted by your security settings, click Yes to continue.
  5. This opens the file browser.
  6. 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. The menu is that the bottom-right corner of the window.
  8. 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. The file is now open for editing.
  10. You'll need to type something on the first empty line, so make sure you're below the existing entries.
    • 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 .
  11. This saves your changes to the hosts file.
  12. 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.
  13. Advertisement
Method 2
Method 2 of 4:

Blocking for All Computer Users (macOS)

PDF download Download Article
  1. 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. You will be prompted to enter your password.
  3. Now that you've confirmed your password, a special file called a Hosts file will open in a text editor called Nano.
  4. You'll need to type something on the first empty line, so make sure you're below the existing entries.
    • 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 .
  5. This saves your changes to the file.
  6. This exits Nano. You can now close the Terminal window by clicking the red circle at the top.
  7. 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.
  8. Advertisement
Method 3
Method 3 of 4:

Blocking with Parental Controls (iPhone/iPad)

PDF download Download Article
  1. It's the hourglass icon.
  2. 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.
  3. It's toward the bottom.
  4. It's near the top.
  5. It's near the middle of the menu.
  6. This expands more options below.
  7. 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).
  8. 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.
  9. It's near the top.
  10. This ensures that the person using the phone or tablet will not be able to install apps unless they have your Screen Time password.
  11. Advertisement
Method 4
Method 4 of 4:

Blocking with Parental Controls (Android or Chromebook)

PDF download Download Article
  1. 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. This opens that account's settings. [2]
  3. More settings will expand.
  4. If any sites are already blocked, they will appear here.
  5. Now you'll be able to enter the address of the site you want to block.
  6. 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.
  7. 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.
  8. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Tips

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

      About This Article

      Article Summary X

      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 135,092 times.

      Is this article up to date?

      Advertisement