When I published a privately written paper in a book published by Springer, they asked me twice about my affiliation, but finally they agreed to indicate only my city + country + email address instead of an affiliation.
I have heard of this but it is only available in some journals, not all. Some, for example, only want to know my city/state/country and not the actual exact place I work.