alexa

Player created by Inbound Now - Social Media Tools.

Wednesday, February 22, 2012

How to Block/Redirect a Website from your PC

website redirect


In this tutorial i'll be showing you how to block websites or how you can redirect a website to another one using the simplest trick.



How to Block a Website

Step 1: search for the application called "Notepad.exe" , right click it and click "Run as Administrator".
hosts file techtreck

Step 2: Go to the directory C: > Windows > System32 > drivers > etc
hosts file techtreck

Step 3: Change file type from (text documents) to (all files), locate the file called hosts and click open, it will look somewhat like the image below 
hosts file techtreck

Step 4: Now to Block a website, go to the end of the text and in the new line type the following:
127.0.0.1<space><website address> and Save it.
hosts file techtreck

Step 5:Bingo, you have successfully blocked the website from all browsers of your computer. Now try to open the website you blocked and you will be prompted by the browser saying something like, "the website is not available".

How to Redirect to Another Website

Simply follow Steps 1,2 and 3.
Then in the forth step, replace 127.0.0.1 with the IP address of the website where you want the later to be redirected as shown below and save it.
hosts file techtreck

To obtain the ip address of a website, simply go to command prompt and type ping<space><website URL> to get its IP address as shown below.
hosts file techtreck

Congrats, you have successfully performed a website redirection using Hosts.

Those who prefer a video tutorial, here you go guys:
   

Prank Ideas# you can redirect suppose google.com to adult sites like playboy.com etc. in your collage lab to make your friends or maybe teachers feel embarrassed. 


Liked This Article? Take 5 seconds to share it.

3 comments:

Anonymous said...

This comment has been removed by a blog administrator.

ROBIN FOX said...

This comment has been removed by a blog administrator.

Siwalik Mukherjee said...

This comment has been removed by the author.

Post a Comment

Powered by Blogger.