It’s a simple technique.
The user just needs to modify one “Host” file.
The user who is going to modify “HOST” file should have administrative privileges
1.] Browse C:\WINDOWS\system32\drivers\etc
2.] Find the file named “HOSTS”
3.] Open it in notepad
4.] Under “127.0.0.1 localhost” add 127.0.0.2 www.sitenameyouwanttoblock.com , and that site will
no longer be accessible.
–> www.blockedsite.com is now inaccessible
Above example is for Windows XP.
In the Windows Vista and in the Windows 7 we have to add websites without #.
Example shown in Windows 7 image given below.
I have pasted host file to show how it looks in Windows XP, Windows Vista and in Windows 7 operating systems:
Windows XP Host File is shown below:
Windows Vista Host file is shown below:
Windows 7 Host File is shown below:
The users will be able to browse other sites; they would not be able to browse the sites which are all added in the host file.