Page 1 of 1

How to block/unblock a domain (for web browsing)?

Posted: 02 Sep 2008 18:26
by budhax
Hello,

A.
Is there a DOS command to block/unblock a specific domain (like www.game.fr)?

I would like the same/similar result as adding/removing this line
127.0.0.1 www.game.fr
in this file
c:\windows\system32\drivers\etc\hosts

Ref: http://forums.winamp.com/showthread.php ... ost2067327


B.
If I use this basic way:

Code: Select all

echo 127.0.0.1  www.game.fr>>"c:\windows\system32\drivers\etc\hosts"

how to target and remove the added line (using DOS commands) to unblock the domain later?

Thanks and regards

Posted: 05 Sep 2008 11:38
by carlitos.dll
The author has been removed this message.