Question about Petya ransomware

How does Petya spread and infect computers?

Petya propagates itself by exploiting the MS17-010 vulnerability, also known as Eternal Blue. Symantec continues to investigate other possible methods of propagation.

Yes ....but how than ? ......is it by e-mail ? or pishingsites ?

Wat is advice to do , to prevent infection ?