First of all you need to notepad file and replace the host file from original file.you need to backup the host file from any drive.
How To copy the host file from C Drive:
There is two method of copy the host file.
1 Method is Via Run command.
In keyboard button pressed windows key + R.you had open a run dialog box.
Next step is after run the dialog box type drivers.
After open the drivers file go to etc folder.you showed host file.copy this file in other drive.
This is the by default Host file original content.
3 Place the cursor at the end of the last line, which will say something such as “127.0.0.1 localhost” or “::1 localhost”. Press Enter to create a new line.
4 Type 127.0.0.1, tap the spacebar once, and then type the address of a website you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.
Continue to add the websites you wish to block, each prefaced with 127.0.0.1 and a space.
Click File, Save to commit to your changes. Dismiss any warnings from antimalware software, which may be triggered by your editing of the hosts file.
Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.
This Is done.
1.Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc. (If Windows is not installed on C:,substitute the appropriate drive letter.)
2.Method is Via Program Files.
Double-click hosts, and select Notepad when Windows prompts you to choose a program. If you don’t get the prompt, or if the hosts file opens in another program, open Notepad (Start, All Programs, Accessories, Notepad), and then navigate to hosts by clicking File, Open within Notepad.
FOLLOWS SAME ABOVE SAME PROCESS.