Sunday 6 January 2013

Block Website

08:08

Lets assume that you want to block a site www.gooogle.cn, you can edit your HOSTS file using the following steps :
  1. First of all you have to open an elevated command prompt. To do this, click on the start menu button (blue orb at the lower-left corner of your screen). Type in cmd in the search box, right-click on cmd.exe when it appears and choose Run as administrator as shown. You may have to click Yes in the UAC dialog.
    Block Websites using HOSTS file
  2. In the elevated command prompt window, type in the following command and press Enter:
    notepad %windir%\system32\drivers\etc\hosts
    Block Websites using HOSTS file
  3. This would open your hosts file in Windows' Notepad. Start editing at the end of the file : PressEnter to start a new line. Type 127.0.0.1. Press TAB key once. Then type the name of the site you want to block, in this case, gooogle.cn. You do not have to type the http:// or www. part of a web site. Then end result will look like this :
    Block Websites using HOSTS file
  4. Save the hosts file by pressing Ctrl + S hotkey or using File → Save. Now when you typegooogle.cn in your browser, it will be redirected to 127.0.0.1 and you will not be able to access it. This site or domain is now blocked for each and every program in Windows.


Redirecting a Web Site

You can redirect a web site to another site using the same method as described above for blocking, except replace 127.0.0.1 by the target site address. For example, suppose you want to redirect your browser to www.google.com whenever someone types www.facebook.com in the browser address bar, then follows these steps :
  1. Open hosts file in Windows' Notepad as described in the blocking section step 1 (see above).
  2. Find out IP address of www.google.com using this article : Find the ip address of a site. (IP address is found out to be 74.125.53.100)
  3. Start editing at the end of the HOSTS file : Press Enter to start a new line. Type74.125.53.100, press TAB key once followed by facebook.com. Save the hosts file.
Now whenever you (or someone else) types in your browser's address bar www.facebook.com, he/she will be redirected to www.google.com.

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

 

© 2013 Secrect Hack. All rights resevered. Designed by Templateism

Back To Top