How do you prevent getting foot warts?

Good hygeine. Not going around with barefeet and good hygiene.
No bare feet. In gyms or other public places cover your feet so that you do not expose your feet to other peoples warts.