Risk factors for contracting infectious diseases

What are the major controllable risk factors for contracting infectious diseases? Using this knowledge, how would you change your lifestyle to prevent such infections?

¦