how to restrict websites in internet explorer
Hello Sir,
I am working in a college.
60 computers are connected in LAN
I wanted to block websites like youtube.com
from windows server 2003
without any software
Networks
Hello Sir,
I am working in a college.
60 computers are connected in LAN
I wanted to block websites like youtube.com
from windows server 2003
without any software
by pramod.patil Accepted solution
by rob miners Accepted solution
Press the WinKey + r and type or copy this command: notepad C:/Windows/System32/drivers/etc/hosts click OK or press Enter.
Add this line at the end of the document and save it.
127.0.0.1 youtube.com
You can update all of the Workstations at once using running a Batch file and an Input file. The workstaions will need to be turned on for this to work. Place the two files in the root directory. Test it on one Workstation first.
Create and run this from the file server. You will need 2 files. The first one is the .bat the second is a text file with a list of workstations that you need to add to in the same format.
C:\test is a folder on the File Server, place the updated file that you want copied in there. If the file exists on the Workstation it will be overwritten.
File 1 = copyto.bat
FOR /F " tokens=1 " %%i in (WS.txt) do copy C:\test\*.* "%%i\C$\C:\WINDOWS\system32\drivers\etc"
Put your modified hosts file that you want copied into a folder EG: c:\test
File 2 = WS.txt
\\ws01.domain.local
\\ws02.domain.local
This discussion is closed to new replies.
Sort by Trending