Is it legal to buy Modafinil online in the UK?

In UK and Australia, people can buy Modafinil online without a prescription. It is not available over the counter without a doctor’s consultation.