The best way to avoid measles is to get the measles, mumps and rubella (MMR) vaccine. The first shot is recommended for children between 12 and 15 months old and the second between 4 and 6 years old.