Pages

Tuesday, March 19, 2013

how to block a website on a computer by editing admin file and how to give permission to edit the admin file

You can block any website to open on your computer by editing a windows file located in

c:/windows/system32/drivers/etc/

the file named hosts





edit this file with notepad.

and put the website name at the below which you want to block like the below image


in the above image you can see that i have mention the facebook website with an ip address. The ip address will be mentioned already with the host name their, copy that ip address and put the website address after that which you want to block. and save it.

Error while saving the host file Access Denied!

If you computer denied your request to save the hosts file, it will mean that the current user you are logged in to your pc is dont have the permission to edit or write admin file or windows file for that you can follow the following steps:

You need to give permissions to the File/folder, follow the steps below:

# Right-click the file and select Properties.
# Click on the Security tab.
# Click Advanced in the lower right.
# In the Advanced Security Settings window that pops up, click on the Owner tab.
# Click Edit.
# Click Other users or groups.
# Click Advanced in the lower left corner.
# Click Find Now.
# Scroll through the results and double-click on your current user account.
# Click OK to all of the remaining windows except the first Properties window.
# Select your user account from the list up top and click Edit.
# Select your user account from the list up top again and then in the pane below, check Full control under Allow, or as much control as you need.
# You’ll get a security warning, click Yes.
# On some files that are essential to Windows, you’ll get a “Unable to save permission changes… access is denied” warning and there’s nothing that you can do about it to the best of my knowledge.


Try it :)


posted by honeyonsys

No comments:

About Me

Hi,My name is Harish Kumar.I am a web developer by profession.I am working in the same field since 2008. About my skills i am proficient in HTML,CSS,JAVASCRIPT/JQUERY/ ANGULAR,PHP,MYSQL,APACHE,LINUXAJAX, REST,etc...