Check out the cases in the following countries:
Currently, Modafinil is a Schedule IV controlled substance in the United States. Physical and psychological dependence are very limited, so it has a very low potential for addiction or abuse. In the United States, you must have a prescription from a doctor to purchase any drug under Schedule IV. Doing so without one is technically illegal. But, once you get your Modafinil no one will ask you about it, and it will not get you into any legal trouble.
The UK government considers Modafinil as a restricted prescription-only medication (POM), but you do not fall into any trouble for not having a prescription.
The government of Canada has Modafinil on its Prescription Drug List but no problem will arise even if you don’t have one.
In Australia, Modafinil comes under Schedule 4, and drugs in this category are legal with a doctor’s prescription required to purchase them. However, it is not illegal to have them without a prescription.
It is the same in other countries as well. You should, however, consult a doctor before ordering Modafinil to ensure that your body can handle it.