If you're taller than your opponent, as a form of defense you can:

1) Pivot to the side
2) Slip the punch
3) Lean back slightly
4) Take a small step back

You shouldn't bob and weave or duck punches because it brings your head down to where your opponent can easily reach it.