(CNN) A new feature is rolling out on Facebook and Instagram to combat the spread of anti-vaccine misinformation.

Facebook, which owns Instagram, announced on Wednesday that educational pop-up windows will appear on the social media platforms when a user searches for vaccine-related content, visits vaccine-related Facebook groups and pages, or taps a vaccine-related hashtag on Instagram.

If the user is based in the United States, the pop-up window will connect the user to the US Centers for Disease Control and Prevention for credible information on vaccines. If the user is outside of the United States, it will connect them to the World Health Organization.

Pop-ups will share vaccine information from CDC and WHO on Facebook and Instagram.

The CDC praised Facebook's latest move to stop misinformation from circulating on its platform.

JUST WATCHED How vaccines stop diseases like measles Replay More Videos ... MUST WATCH How vaccines stop diseases like measles 01:26

"We know that parents often turn to social media to access health information and connect with other parents, and it can be difficult to determine what is accurate and who the credible sources of information are," CDC spokeswoman Kristen Nordlund said in an email on Wednesday.