Bird
0
0

You want to block access to a website by modifying the local hosts file. Which entry correctly blocks badwebsite.com by redirecting it to the local machine?

hard📝 Application Q15 of 15
Intro to Computing - How the Internet Works
You want to block access to a website by modifying the local hosts file. Which entry correctly blocks badwebsite.com by redirecting it to the local machine?
A255.255.255.0 badwebsite.com
B192.168.1.1 badwebsite.com
C127.0.0.1 badwebsite.com
D0.0.0.0 badwebsite.com
Step-by-Step Solution
Solution:
  1. Step 1: Understand hosts file redirection

    The hosts file maps domain names to IP addresses locally. Redirecting to 127.0.0.1 (localhost) blocks the site.
  2. Step 2: Evaluate IP addresses for blocking

    127.0.0.1 is the standard localhost IP; 192.168.1.1 is a private network IP; 255.255.255.0 is a subnet mask; 0.0.0.0 can also block but 127.0.0.1 is more common and reliable.
  3. Final Answer:

    127.0.0.1 badwebsite.com -> Option C
  4. Quick Check:

    Hosts file redirect to localhost = block site [OK]
Quick Trick: Use 127.0.0.1 to block sites via hosts file [OK]
Common Mistakes:
  • Using subnet masks or invalid IPs in hosts file
  • Confusing private IPs with localhost
  • Using 0.0.0.0 which may not work on all systems

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Intro to Computing Quizzes