Making a very quick count, I remember Anaxagoras, who in the V century BC (BC) was charged with wicked in Athens say that the sun was a fiery boulder, not a god, and the moon reflected merely the light of these statements led to his exile and had ended up in jail if not saved by Pericles, his student.
back in time and space, travel the twelfth century Muslim Spain with Maimonides , Jewish physician and philosopher from Cordoba who suffered exile, first in Al Andalus and then through northern Africa because of religious intolerance Almohad Empire. Maimonides, one of the greatest philosophers in history tried to reconcile faith and reason that it drew criticism from both Muslims and thinkers of their own fellow Jews.
In 1600 was burnt down Roman Inquisition astronomer and philosopher Giordano Bruno accused of heresy. Among his claims "heretical" was his cosideration of an infinite universe and the existence of many more than our own solar system. His trial was instructed by the same cardinal sixteen years later would lead one to the astronomer Galileo Galilei for defending the Copernican heliocentric system stating that the Earth and other planets revolve around the sun and attack Aristotle's geocentric system, according
the Bible. Galileo would end his days under house arrest after retracting his ideas (or at least defending them.)
To complete this brief delay will travel back to twentieth century, namely the Soviet Union where he lived and botanical geneticist Nikolai Vavilov . Vavilov was sentenced in 1940 to prison, where he died three years later, to defend the principles of modern genetics in Soviet scientific circles of the time, dominated by his bitter enemy Trofim Lysenko who strongly supported the Stalinist regime defended between 30 and 60 years of evolutionary theory by stating that Lamarckism could modify plants environmentally modeándolas regardless of genetics. He declared war on genetics as "bourgeois science" that led to the elimination of all defenders of modern biological ideas.
As we have seen attacks on science and scientists are not isolated events, affecting all ages and faiths and different policy options. Despite all scientific progress has not stopped and continues to fight many enemies, declared or not, even today.