SafeFeel.com

Free Computer Networking Security & Software Questions and Answers Website

Blocking a website?

Is here a road to create a load directory, that when open, will affix an entry to the HOSTS report to block a website.

Example: join this entry to the hosts database:

127.0.0.2 www.myspace.com


Answers: Windows:

@echo off
echo "127.0.0.2 www.myspace.com" >> \windows\hosts

(Use proper location for YOUR hosts folder!)

Unix/Linux:

#!/bin/sh
ring "127.0.0.2 www.myspace.com" >> /etc/hosts

Have fun!
SureIn Windows XP

1. Click Start->All Programs->Accessories->Command Prompt2. Click Command Prompt This will amenable a DOS command pane.
3. Type: notepad C:/Windows/System32/drivers/et...
4. Locate the string 127.0.0.1 localhost
5. To block the website google.com for example, a short time ago give this deed underneath 127.0.0.1 localhost:



127.0.0.1 google.com
127.0.0.1 www.google.com


You can add on as masses sites any site, However you will have need of to prefix it next to "127.0.0.1".

6. Save the file
Google will in a minute be blocked within adjectives pattern browser. This is an advanced but comfortable method on how to blow a website.

The page below will pass you more optical detail. Hope this help!
http://www.delete-computer-history.com/h...