How legal are Xanax bars? Xanax and all its classifications such as Xanax 3mg, Xanax 2mg, Xanax bars come under a group of drugs called benzodiazepines, And the medication of this drug is regulated by law. Although it is not legal to take Xanax without a prescription from a certified doctor or neurologist. Furthermore, it is not good for a patient’s health if they consume Xanax more than the prescribed doses.