Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Can't Get Into My Hosts File


  • Please log in to reply
6 replies to this topic

#1 jonnyD

jonnyD

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:08:25 PM

Posted 04 September 2007 - 03:07 PM

I recently read about adding website names in the hosts file to prevent access on them on my home computer. I went to: start>my computer> local disk c:> Windows> system32> drivers> etc > hosts. A dialogue box asks which program I want to use to open the hosts file with. I chose Notepad (which I read somewhere was the correct program). I get an error essage which says: "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." Now since I have a stand-alone desktop computer, why would I not have permission to access my hosts file? I get the same error message when I just try to open Notepad from start>all programs>accessories>notepad. I have Windows XP Pro version 2002 with SP2, AMD Athlon XP 2400+, 1.99GHz, 1.5 gigs RAM.

Once I get access to the hosts file, what is the exact way to type in the websites so I can block them on my computer?

BC AdBot (Login to Remove)

 


#2 garmanma

garmanma

    Computer Masochist


  • Staff Emeritus
  • 27,809 posts
  • OFFLINE
  •  
  • Location:Cleveland, Ohio
  • Local time:08:25 PM

Posted 04 September 2007 - 03:49 PM

Here's the help page
http://mvps.org.
and their FAQ page
http://mvps.org
Many people use it, personally I had issues with it
Mark
Mark
Posted Image
why won't my laptop work?

Having grandkids is God's way of giving you a 2nd chance because you were too busy working your butt off the 1st time around
Do not send me PMs with problems that should be posted in the forums. Keep it in the forums, so everyone benefits
Become a BleepingComputer fan: Facebook and Twitter

#3 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:08:25 PM

Posted 04 September 2007 - 03:57 PM

Right click on the hosts file, click properties, and select the security tab. Make sure in the Administrators item, "Full Control" is selected.
Posted Image

#4 jonnyD

jonnyD
  • Topic Starter

  • Members
  • 13 posts
  • OFFLINE
  •  
  • Local time:08:25 PM

Posted 05 September 2007 - 07:52 AM

I right-clicked on "properties" in the hosts file. There was only a "general" and "summary" tab. Nothing about security. Additionally, I tried to go directly into Notepad again and I got this additional error message: Windows cannot open thos program because it has been prevented by a software restricion policy. For more information contact your system administrator.

I don't have an administrator. What do I do?

#5 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:08:25 PM

Posted 05 September 2007 - 03:02 PM

Disable Simple File Sharing, that should give you the security tab.
http://www.practicallynetworked.com/sharin...mplesharing.htm
Posted Image

#6 DanC1186

DanC1186

  • Members
  • 82 posts
  • OFFLINE
  •  
  • Local time:07:25 PM

Posted 05 September 2007 - 05:25 PM

Disable Simple File Sharing, that should give you the security tab.
http://www.practicallynetworked.com/sharin...mplesharing.htm



Yeah. If that doesn't work, I would have to ask if you have any program installed that is locking the host file?? I know SpybotSD allows you to do this as well as a handful of other security programs.

#7 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:08:25 PM

Posted 05 September 2007 - 09:04 PM

The only way I can think of that you still wouldn't have access to the file is if you didn't have ownership of the file, or it was in use by another process. If you don't have ownership, here's how you get it back: http://support.microsoft.com/kb/308421
And if it's in use by another process, you could access it by booting into Safe Mode (press F8 while booting), or boot into the Recovery Console with a WinXP CD: http://support.microsoft.com/kb/307654#3
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users