Host File

Anonymous
2022-06-20T22:16:56+00:00

Im trying to block toxic sites that i just unheathly go to, by setting this up of what i found of a way to block, and then i was going to turn me to standard and have my friend be admin but for someone reason it still saids i dont have permission. what am i doing wrong iv literally tried these two youtube videos and its not resolved https://www.youtube.com/watch?v=HeARH0JrWNc

https://www.youtube.com/watch?v=smZwm7mvBi8&feature=emb_imp_woyt

Both Windows 10 and Mac have a hosts file you can use to disable websites. With this trick you can redirect all traffic from that domain to your local machine, causing them to simply stop loading. Here’s how to do it in Windows 10:

  1. Open File Explorer by clicking the folder icon in your taskbar. Click the bar to the left of Search and paste in: C:\Windows\System32\drivers\etc
  2. Double click the hosts file and open it using Notepad or some other text editor. Create a new line at the bottom of the file by tapping Enter.
  3. On the new line, paste in the IP 127.0.0.1 and then type the URL of the domain you want to block. For instance if you want to hide Facebook, the line will look like this: 127.0.0.1 www.facebook.com
  4. To block more sites, create a new line for each, and follow the step above again. Make sure to save your changes and close the file.
Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

17 answers

Sort by: Most helpful
  1. Anonymous
    2022-06-20T23:52:41+00:00

    I suggest OpenDNS from Cisco.

    0 comments No comments
  2. _AW_ 62,246 Reputation points Volunteer Moderator
    2022-06-21T00:10:29+00:00

    Hi, right click on Notepad and run as administrator, then press Ctrl + O, and browse to

    C:\Windows\System32\drivers\etc\hosts

    ***Make sure you set the file type to All files

    ![](https://learn-attachment.microsoft.com/api/attachments/6dce5c67-9d20-445a-83d8-a34ef784d5b6?platform=QnA

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-06-21T00:19:02+00:00

    RottweilerX

    my internet provider is comcast thou will this still work?

    AW

    Okay but when i put the website to block and saved it didnt do anything i still was able to get on the website

    0 comments No comments
  4. _AW_ 62,246 Reputation points Volunteer Moderator
    2022-06-21T00:40:41+00:00

    You need to remove the # from the start of the line.

    Also the block should look like:

    127.0.0.1 www.google.com

    127.0.0.1 www.facebook.com

    i.e. block the entire domain

    not www.facebook.com/someotherpage

    You may also have to clean the cache of the browser before testing.

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2022-06-21T00:57:23+00:00

    RottweilerX

    my internet provider is comcast thou will this still work?

    Absolutely! I did this with Comcast for many years when my son was young.

    You are simply replacing Comcast's DNS with OpenDNS. It's no problem for Comcast.

    0 comments No comments