To prevent people from sharing unwanted files with you, right-click a file they've shared with you, and choose Block.