You should ask a question like this on the Debate club... I can guarantee that you'll get some ridiculously stupid answers asking such a question on this club.
I'll answer anyway, in hopes that people might take example from a serious answer. I don't think there is much we can do, in all honesty... Sure, we can fight it - but that doesn't guarantee that terrorism will simply disappear... There will always be people that will want to hurt others by employing such means... I don't really think that there is a solution, but I'm sure that we, as humans, will inevitably think of something.
Terrorism can never be stopped, because people will never stop fighting for what they believe is right, regardless if other people believe their opinion is right or wrong.
People perform acts of terrorism because they think that their actions will provoke change. So, what we need to target is the things that potential terrorist think are so extremely wrong that they will contemplate doing such drastic actions, or try to explain to them why these things cannot or will not change.