July 26, 2007

Block Specific Website (Win XP)

Your friend often visits you and use your computer for access some websites those you don't like. But you cannot say NO to him/her. There is a trick following bellow. It will block specific website which you wish to stop anyone access those from your own computer.

Step:1
Go to start and hit Run command. Then type following and open "hosts" file in notepad.
  • C:\Windows\System32\drivers\etc\hosts

Now go at the bottom "hosts" file and add "127.0.0.1"<-more than one space->"SiteName" exact below under typed string "127.0.0.1"<-space->"localhost". Then save it.(See above image where I typed "127.0.0.1" "ajansu.blogspot.com".)

Step:2
Go to start and hit Run command and type "Services.msc" and you will get following window of Services(Local) settings.


Then find "DNS Client" settings in right pane. Now right click on "DNS Client" and get Properties. You will get DNS Client properties exact like following window.


Then go to General tab. Now click on Startup Type and make it Disable. Then Apply it. Now refresh your computer.(Maybe you need to restart your computer)

Step:3
Now go to Internet Browser. Type URL in address bar which you just entered at the bottom of "hosts" file and wanted to block. Amazing!! Its Blocked!!

It is also known as DNS Spoofing.

No comments: