HOST FILES

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

i want to block a certain website. how would i go about
doing this step by step using host?
thank you
 
HOSTS file won't block the access to the site for someone with a decent
amount of computer knowledge, but I guess for the average user it will.

If you don't want someone to go to playboy.com, for example, you can do
this:

START--RUN
TYPE: cmd
PRESS ENTER
Enter this at the command prompt:

echo 1.1.1.1 playboy.com>>%windir%\system32\drivers\etc\hosts
echo 1.1.1.1 www.playboy.com>>%windir%system32\drivers\etc\hosts

Note that that is the default location of the HOSTS file, so it's 99.999%
likely to be at that location.

Ray at home
 
From the Start menu, choose Programs, then Accessories, then "Command
Prompt". Or, using your preferred text editor, you can navigate to the hosts
file from the open dialog. Or you can navigate to it from within Explorer,
although you will then have to tell Explorer with what application you wish
to open the file.

FWIW, you can also alias domains you wish to block to 127.0.0.1, instead of
1.1.1.1. I believe that normally, 127.0.0.1 will "fail" to resolve the
request faster.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top