How to prevent access to a web site in your computer and redirect it to a different website or a server.

How to prevent access to a web site in your computer and redirect it to a different website or a server.

This is a very easy trick and this will help you to block certain web sites from your computer.

This is for windows Xp

This trick is done by redirecting the URL (which you want to block) to another URL.

Follow the steps carefully:

First you will have to ping a website and get the address of the website, so that when ever a user tries to go to the website which you want to block they will be redirected to a different website. This redirection can be either done to another website or to a server.

To ping a website use the following command in the command prompt:

ping www.yahoo.com

you will get some thing like this.

Pinging www.yahoo-ht3.akadns.net [86.248.113.14] with 32 bytes of data:

……………………..

………………………..

The numbers within the brackets represents the address of the server. The address will vary, so run the ping command in the command prompt of your computer and get the address.

Then go to c:\windows\system32\drivers\etc\hosts and then open the hosts file in the notepad.

There at the end of the file addthe following line:

86.248.113.14 websitetoblock.com www.websitetoblock.com

Just save the file and then in any browser, open the website to block. Now instead of the website you will have the website whose address has been entered (e.g. 86.248.113.14),that is www.yahoo.com.You can have the redirection to any website you want.

If you want to redirect to a server then enter the address of the server to which you want to redirect to.

Popular posts from this blog

How to increase Write/Copy/Read speed of Memory Card or Pen drive in Windows 7