I can't go on the pill?! Helpppp

Annie
So I can't go on the pill- I get horrible migraines and I get an ora along with them and apparently you can't go on the pill if you have them. If I'm going to have sex what is another way to have something like the pill (besides condoms). Anything that will prevent me from getting pregnant and that I can get without a family member 
Thanks guys x