Block any site on the internet with a host file in your pc. which blocks the sites and make not accessing it
In my previous post i have showed you some basic about addons. And today's topic is totally different.
Before Going into mail action we need to know some basic about the file called "Host files"
What is HOST ?
In simple words we can say host file is used to map a domains and host names by a operating system,
here is a example how the host file works:
Suppose you are connecting to google or facebook by entering the address www.google.com in a browser and now the browser will look into the host file with the keyword "www.google.com" or "google.com" is located or some times using the ip address too of corresponding domain, if there is no such entries it will connect the request to DNS [Domain Name System] and obtain the ip address
of the domain.
of the domain.
This you can see while the website loads , usually on the left bottom of your browser.
So here it comes host is one of the important file using this we can control the sites by blocking or making it work.
So here it comes host is one of the important file using this we can control the sites by blocking or making it work.
How to make it work
Before doing any changes in host file make a backup and save in local disk.
- Navigate to C:>windows>sys32>drives>etc>host
%systemdrive%/windows/system32/drivers/etc
- Open "host" with Notepad+ or Notepad with Admin rights
- Now add this line "127.0.0.1 example.com" at the bottom of the host
- Here "127.0.0.1" is the main part and next to it add the domain name or ip address of the domain.
- Editing the host part over now lets check the trick working .
- Enter facebook.com in your browser and check, if you have saved your host properly then the page wont open and let you go in, it ll show error message like this
Incoming Searches:
block fb
block ads site
block youtube
block unwanted sites
block using host files
how to use host files in pc
fb blocked in my pc
Like Us on Facebook for more updates