First Visitor of the Year

There is a interesting belief in the Slovenia.

Since I was little, for every New Year Day, there was a conversation I had with my family. I was not allowed to visit anybody in the morning. They believed, that if the first visitor of the year is a woman, then this brings bad luck. So the first visitor always needs to be a men.

I am not sure, if this is just part of Slovenia, my father was from, or is it more widespread.