The only way to prevent smallpox is the smallpox vaccine. Vaccination within three to seven days after exposure to smallpox may prevent the disease in rare cases, but usually limits its symptoms, and is thought to reduce mortality.