Yosef Karo, Shulchan Aruch — Yoreh Deah 198
“ And if she doesn’t have anyone who will stand over her, or it is at night, she should tie up her hair on her head with wool bands, or with the ribbon in her hair, provided that she loosens them, or she uses hollow link chains or if she ties a loose garment around her hair. ”
