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 have a windows share that anyone can connect to (no password), however users of specific computers should not be allowed to connect to them. How do I disable access for those users on those computers?

share|improve this question

migrated from stackoverflow.com Jul 5 '12 at 1:38

This question came from our site for professional and enthusiast programmers.

1 Answer 1

It's easier to set a password for the allowed computers.

Else, if the computers that you don't like to share the resource have static IP and they don't need to connect to the sharing computer, you can block their IP in the host files to prevent their access:

http://www.ehow.com/how_5422923_block-ip-address-computer.html

But this alternative is less secure than adding a password.

share|improve this answer
    
this method will not work. see en.wikipedia.org/wiki/Hosts_(file) it will work if you have a hostname to use (as in the example from the link you provided), but that's only because it will attempt to give itself the same host name and then connect back to itself (not finding a webserver on 127.0.0.1 and displaying that the page could not be loaded). at best the method you propose is a hack. –  mikhailvs Jul 3 '12 at 21:30

Your Answer

 
discard

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