Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to block a website because someone keeps downloading crap from this website and it's spyware. I tell them it's spyware and they download it anyway. So I'm trying to block it via the hosts file.

My host file looks like

127.0.0.1   scorpionsaver.com
127.0.0.1   174.129.20.145

the second entry is the actual IP address of the website.

I save the changes. I'm running it as an admin so it doesn't make me save the changes to a new file. It saves directly to the hosts file. So I save and quit. Then I reboot my computer. I visit this website and it still loads. So I also tried using 0.0.0.0 instead of 127.0.0.1. Same problem.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

127.0.0.1 should be sufficient, as this will route any traffic to the loopback adapter.

To effectively block the site, use the full DNS name(s):

127.0.0.1 scorpionsaver.com www.scorpionsaver.com subdomain1.scorpionsaver.com

Verify that your changes persist after rebooting.

share|improve this answer
    
Awesome. Thanks! –  BreeBreeBRAN Dec 25 '13 at 2:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.