How can you stop a migraine as soon as it starts?

Medication. There are several medications that help like Imitrex (sumatriptan) which if you use it as soon as the migraine stops it can abort the attack.