What would happen in the event of an alien invasion or attack on enough, do we have the capable defenses?

Extraterrestrial life has never really been proven to exist but if they do exist and they find us would we be able to defend ourselves. What would stop an alien ship from blasting Earth into smithereens when they discover us.
22 answers 22