InterviewSolution
Saved Bookmarks
| 1. |
Solve : How can i Restrict the Sites ?? |
|
Answer» Hi, Im using Windows XP... In my User using Unwanted Sites and Downloading Images.. so the Viruse are Spreading... How can i Restrict the Particular Sites.. like (Yahoo.com,gmail... etc), So if any Option is there... help Me...goto run and type and paste notepad C:\windows\system32\drivers\etc\hosts in, click ok once you are viewing the hostsfile in notepad, you can restrict access to a website by adding another line, it will look something like this #This is your hosts file #balbababalbaba #balblablalba #blablablaba #blabla 0.0.0.0 www.badwebsite.com 0.0.0.0 badwebsite.com with 0.0.0.0 www.badwebsite.com , all connections to www.badwebsite.com instead go to localhost "0.0.0.0" its the same as typing 127.0.0.1 badwebsite.com remember that webpages like live.com , have something infront of them so 0.0.0.0 www.live.com wont work, you would instead have to use 0.0.0.0 login.live.com you could also use a different page for example , adding the line 64.29.221.104 www.google.com would send you to lego.com everytime you tryed to go to google.comYea, thats pretty much it, just to add to it- You might have to go to "tools"-->"Folder options"-->"view" and check the box(circle) that says "Show hiden files and folders". And when you open the "hosts" file, it might look a little something like this: Code: [Select]# Copyright (c) 1993-1999 Microsoft Corp. # # This is a SAMPLE HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column FOLLOWED by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # ADDITIONALLY, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 X.acme.com # x CLIENT host Then you just change it like this: Code: [Select]# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 0.0.0.0 www.yahoo.com 0.0.0.0 yahoo.com ETC. But also- one more thing- before you open it to edit it, you must go to file properties and uncheck the box "read only". Then you can edit it and save it without trouble. And just to be on the safe side, once you've saved it, recheck the "read only" box in file properties. Ps I know diablo already covered alot of this, but I just thought I should give a few pointers for the "non-computer-smart-peaople"........... A Good Explanation of the Hosts File and How to Use ItYea, read through that and then go over my thread and diablo's |
|