Is it an online pharmacy that requires a perscription? If it is then it is safe. If they don't require a prescription than don't even try it. I ordered meds once from an online pharmacy that I thought was in Canada. They didn't require a prescription and the meds didn't even look close to the real thing and they came from China. It could have been poison for all I knew.
I forgot to mention. Ambien works very well. I also have a sleeping disorder. I had to stop taking the Ambien because of the sleep walking and memory loss, lack of concentration during the day it was giving me. Xanax works really well for me too. If you don't have insurance it's very inexpensive.