The ONLY  solution to the terrorist problem is for the western nations to get out of the middle east and Afghanistan and let the Arabs and Israel sort out their own problems.
Then the terrorists would have no quarrel with the west.