Basically, it translates the hostname to IP and IP to the hostname.

The host file is a plain text file without any file extension.

It functions as a local copy of a DNS server.

In short, your host file is a form of DNS.

your machine actually looks for your host file before hitting the internet and finding the site youre searching.

Then click onFile, and selectSave.

Each field is separated by white space (blanks or tabulation characters).

For this first, we need Twitters IP address.

we can get this by using the ping command.

TypeYoutube.comyoull end up on Twitter!

you could also create shortcuts with multiple letters, such as twit.

You dont need a .com, .net, .org, or any other bang out of extension.

However, you cant use spaces.

Simply fire up the Host file on Notepad and Clear Other entries set by Malware adware.

And left the default entries as shown below the host file.

This will lock down your Hosts file and prevent anyone or any malware from writing to it.