There are certain files and folders in Windows that you can only access when you are logged in as the administrator of that computer.

Sometimes you are the admin (and the only user) of your home computer and yet, when you try to open some protected file, it says “access denied”. This is confusing because you are logged in as the super-user and if you don’t have access to all parts of the system, who else will?

Step 1: Open Notepad as an Administrator.

Step 2: And go to File -> Open ( ctrl + O ), Paste the file location on search bar ( please check that you are searching All Files(.) ).

Read this : How to block websites?

In my case the file location is ” c:windowssystem32driversetc ” and the file is hosts.

You will see a notepad window on your screen containing some information.

Now you can  edit the file as you want.

click here for the video