Have you ever shared a network drive between MS Windows and Macos? The Mac saves info about sorting, icon sizes and such for each folder in a .DS_Store file, there is no need for this in lets say your web root so lets get rid of it:
# defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Then reboot or killall Finder for changes to take effect.
To change this back do:
# defaults write com.apple.desktopservices DSDontWriteNetworkStores false
I have yet to find a way to block the “._” files automatically but manually you can use:
# dot_clean /Volumes/share_name
If you are using samba as your fileserver then you can use the “veto files” and the “delete veto files” in smb.conf, i usually set it in the [global] part but in a [share] is also fine.
veto files = /._*/.DS_Store/ delete veto files = yes