The TheraICE Rx Headache Relief Hat can be used while sleeping. I sometimes use it overnight to prevent the ray of light. It is completely safe.