A Pakistan court sentenced four men to death for posting blasphemous content online, a prosecution lawyer told AFP on Monday.