Login Register






Blocking websites through DNS host settings on a Windows OS. filter_list
Author
Message
Blocking websites through DNS host settings on a Windows OS. #1
TL;DR:

On the Windows operating system you can black websites and unblock them for usage. Basically this allows us to block websites such as Facebook.com and Twitter. However this is useful for work too. Let's say you're the boss of a big corporation, you don't want your employees wasting time. Like maybe Pornhub or other websites either not safe for work or just keeping them from doing their job. This is how you could fix that.

Go onto your desktop and right click the notepad shortcut. You're going to want to run as an Administrator or this won't work.

If you don't have a notepad shortcut:
Right click the desktop and click new > shortcut. When it prompts you what shortcut to create just type "notepad" and continue.

You're going to want to open the file called "hosts". To access it you go to your C drive.
C:\Windows\System32\Drivers\Etc\ is the exact location. It won't be there as a textfile, and if it is, disregard the text file. Make sure the dropdown bar says "All Files". Click on "Hosts". Not "MyHosts", just "Hosts".

Time to edit.
Anything with a hashtag next to it is just a comment, so don't put a hashtag in front of it.
You're going to want to indent correctly, most should have an example above and just copy that indentation if you're having trouble.

You're going to want to put "127.0.0.1" in the IP part. This is YOUR computer IP address.
Ex:
Code:
127.0.0.1 www.sinister.ly
That is NOT to copy. The indentation is probably wrong. Do it on your own.

Next, save the file. If your browser is already opened it may take a few minutes to update. If your browser is closed it should be instantaneous.

We're done. Have fun blocking facebook or whatever the fuck you want to block.
[Image: BXqGARG.png]

Reply

RE: Blocking websites through DNS host settings on a Windows OS. #2
Indentation shouldn't matter.

You should likely include how to flush the dns cache.

Reply