To thwart ISIS, first consider history