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 want to block access to a certain ip address via windows host.

This is the ip address 41.190.8.17. And this is the content of my host file.

# localhost name resolution is handle within DNS itself.

127.0.0.1 41.190.8.17

If I go to my browser and input 41.190.8.17, it takes me directly to the site.

Please can someone tell me why it is ignoring this?

share|improve this question

1 Answer 1

It won't work that way, because the hosts-file is only being used for name resolution via DNS. Since it is already an IP-Address, Windown (or you application) don't need to do a DNS Lookup.

I think you have to block taccess to the IP-Address in questing with the windows firewall. Maybe this would help, depends on what Windows Version you're using

share|improve this answer
    
How about if I want all requests to that IP Address reirected to my localhost? –  Mob Nov 11 '12 at 14:45
1  
I think you'll have to set it via the firewall as well. –  Bonsi Scott Nov 11 '12 at 19:26

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.