Here in this article I will show you how to use host file to accomplish some of the above mentioned task.
What is a hosts File?
Where is the hosts File Located?
In Windows operating system, the hosts file is located at:
Note: In most cases this should be:
In Unix/Linux operating system, the host file is located at:
How to Block a Website?
Note : I would prefer to backup the original file before modifying it. So, if something goes wrong, you can just delete it and restore the original one!
Well, here is a step-by-step procedure on how to create a new hosts file on Windows:
Step 1: Go to START => Then go to RUN and type the following text and click enter:
Step 2: Now right click on hosts file and go to its properties, then go to security tab and then select your admin account, just below u will see an edit button (in front of change permissions), Now give the user full control and write and read rights and then click on apply and then click on Ok, now u will be able to edit the hosts file and save changes in it.
Detail Note about Granting Permission In Windows7:
Note : If you have login through admin then skip this step2 .Its just for granting permission for editing file.
Step 3: Now a notepad file appears something like this as shown below:
Note : Each new entry should be placed on an individual line in Host file. The IP address and the hostname should be separated by a space or a tab. In this way, you can block any given website by just pointing it to the IP address 127.0.0.1.
Step 4: After adding website in Host file, save the notepad file. And exit from there.
That’s it. You’ve now successfully blocked those websites from loading on your computer.
How to Redirect a Website?
Suppose you want to redirect Facebook.com to Google.com, all you have to do is just add the following lines to your hosts file:
Here 18.104.22.168 is the IP address of Google.com. To find out the IP address of any given website, just go to command prompt and ping it. For example: ping google.com. You should get a ping response that displays the IP address as shown below:
From now on, whenever you type “facebook.com” on your browser, you will be redirected to “google.com”.
How to Block the Annoying Ads on your computer?
Download MVPS hosts
Note: If you are playing around with the hosts file and something goes wrong, just restore backup Host file with modified one.
I hope you are now able to Block or Redirect Unwanted Websites Using HOSTS File. If you have any problem in this tutorial on
How To Block or Redirect Unwanted Websites Using HOSTS File
please mention it in comments....Enjoy .........
Filed Under: hack IDM , MISCELLANEOUS
Click Here To Download Winspy Keylogger