Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Restrict internet with HOSTS not working

Posted on 2005-04-01
Medium Priority
Last Modified: 2013-12-04
I've got a PC that I only want the user to access a limited number of web sites.  I edited the c:\winnt\system32\drivers\etc\hosts file as follows (example):

then I took out the DNS server addresses on tcp/ip

this worked on one PC but not on another.  It works on some web sites, but not on others (for example, I can't get it to work on, but can get it to work with some insurance-related web sites.  I know this is the right IP address, so why doesn't it work consistently?

Question by:maharlika
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

cjinsocal581 earned 400 total points
ID: 13745954
Try stopping the DNS Client on the machine trying to access the websites.

then the PC should only look at the HOSTS file.
LVL 20

Assisted Solution

nedvis earned 400 total points
ID: 13797996
"... the name resolution generally occurs in the following order: 1. NetBIOS remote name cache; 2. WINS server; 3. Broadcast; 4. LMHOSTS file; 5. HOSTS; 6. DNS "

good luck

Featured Post

Cyber Threats to Small Businesses (Part 2)

The evolving cybersecurity landscape presents SMBs with a host of new threats to their clients, their data, and their bottom line. In part 2 of this blog series, learn three quick processes Webroot’s CISO, Gary Hayslip, recommends to help small businesses beat modern threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : All lightning effects with instructions : http://www.mediaf…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question