-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Archived Topics
- Notebooks Archive
- Re: How to add an IP address to hosts file

Create an account on the HP Community to personalize your profile and ask a question

01-11-2012 08:48 PM
Hi,
The path of the hosts file in Windows 7:
%systemroot%\system32\drivers\etc\
it's hidden, you can edit this file using Notpad and you NEED Admin rights to do this.
You can find out more info from the following link:
http://helpdeskgeek.com/windows-7/windows-7-hosts-file/
Regards.
***
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
01-11-2012 08:49 PM
Open up your hosts file, it is located at:
C:\Windows\System32\drivers\etc\hosts
In Notepad, add your website IP address and name
Such as: 102.54.94.97 rhino.acme.com
Then Save the file, and relaunch Internet Explorer.
-Bryan
01-11-2012 08:50 PM
1. Goto Start > Run
2. Type following command & click OK button.
notepad c:WINDOWS\system32\drivers\etc\hosts
3. A notepad window will open with text content.
Scroll down at the bottom to view IP address and host information (like: 127.0.0.1localhost). Here you can add URLs with 127.0.0.1 IP address to block them (like 127.0.0.1 facebook.com)
Refer the following weblink:
http://www.tothepc.com/archives/how-to-block-specific-websites-on-a-computer/
Regards,
Vidya
Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***
01-11-2012 08:55 PM
%systemroot%=C:\Windows
Regards,
Vidya
Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***
01-11-2012 08:58 PM
Refer the link given earlier:
http://helpdeskgeek.com/windows-7/windows-7-hosts-file/
It has the steps to resolve this error.
Regards,
Vidya
Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***
01-11-2012 10:22 PM
Hi,
The directions for adding an IP address from the link were followed. I used Mozilla firefox browser. But it did not work. The message appears which says I do not have permission to save the file in this location.
01-12-2012 12:24 AM
Hi,
As mentioned above, you NEED Admin rights to be able to edit that file. Do you have Admin rights/privileges ?
***
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
