The legality surrounding buying modafinil online varies from one country to another. In some countries such as the US and the UK, among others, it is classified as a prescription-only medication. Consequently, it is difficult to buy or sell it as an individual or online without an Rx. However, it is legal to purchase and import it from reputable e-pharmacies into the country for personal use.