In an unprecedented measure, Israeli police barred Palestinians from Jerusalem's Old City on Sunday in response to stabbing attacks that killed two Israelis and wounded three others, as Israel's prime minister vowed a "harsh offensive" to counter rising violence.