Because there is no straightforward way to allow file sharing without allowing anonymous access to your machine, you should turn file sharing off.
Turn Off File Sharing
- From the Apple menu, choose System Preferences.
- In the System Preferences window, click Sharing.
- Remove the check from:
-
- Personal File Sharing
- Windows Sharing
- FTP Access

- Close the System Preferences window.