Sometimes we want to block few websites so that other users of the computer can't visit those pages.
Today I'll show you how to do this from windows operating system based computers.
Let's do it then!
Step 1: Search for notepad, right click on that and select 'Run as administrator'
Step 2: Press 'Ctrl+O', navigate to 'C:\Windows\System32\drivers\etc' and double click on hosts
Step 3: Then at the end of the text file type in- "127.0.0.1 www.example.com" (w/o quotes)
Step 4: Press 'Ctrl+S' to save the file. Now use any browser to test your target site. You'll see that the site cannot be accessed anymore!
What if you want to revert these things? Just put a # in front of 127.0.0.1 in the hosts file.
Today I'll show you how to do this from windows operating system based computers.
Let's do it then!
Step 1: Search for notepad, right click on that and select 'Run as administrator'
![]() |
Opening notepad with admin access |
Step 2: Press 'Ctrl+O', navigate to 'C:\Windows\System32\drivers\etc' and double click on hosts
![]() |
Opening hosts file |
Step 3: Then at the end of the text file type in- "127.0.0.1 www.example.com" (w/o quotes)
![]() |
Blocking Access to Facebook |
Step 4: Press 'Ctrl+S' to save the file. Now use any browser to test your target site. You'll see that the site cannot be accessed anymore!
![]() |
Blocking activated |
What if you want to revert these things? Just put a # in front of 127.0.0.1 in the hosts file.
Example #127.0.0.1 www.facebook.com
See you again shortly!
Comments
Post a Comment