January 26, 2008

How to block a website ? ( E.g. Pron Sites or Malware sites)


Some times we need to block some websites because of adult content or malwares. How we can block a website or domain . Follow these steps shown below.


Go to this folder -- you need administrator privilege to access this folder .
C:\WINDOWS\system32\drivers\etc

** Create a new folder e.g. "backup" and copy all files inside this folder to backup folder.

Open file named "host" in 'Notepad'.

Now I am going to block these sites "badsite.com" , "malwaresite.com", "adultsite.com" .

Add these line at the end of the file .


127.0.0.1 badsite.com
127.0.0.1 malwaresite.com
127.0.0.1 adultsite.com



*NB: Requires tab space between entries e.g. 127.0.0.1 < tab space > badsite.com



Save this file and Check all blocked sites on your browser .


No comments: