How to block and replace a website on a PC. My computer=> C drive => Windows=>System32=>drivers=>etc=> host file Open host file in WordPad or notepad Now open CMD and type in CMD ping www.google.com then copy the IP Address of Google website In host file just write the IPaddress of Google website that you copy and name of the website which one you want to block. Like: 87.248.112.181 www.facebook.com in this case you will type in URL www.facebook.com but Google website will open. for block: type 127.0.0.1 www.facebook.com...