Immanuel Kant perhaps thergreatest of all modern philosophers was no enemy of religion!He identified 4 possible perversions of religion!
1.1.theosophy-using transcendental conceptions that confuse reason,
2.demonology-indulging in anthropomorphic mode of representing the Supreme Being,
3.theurgy-a fanatical delusion that feeling can be communicated to us from such a being or that we can exercise an influence on it,
4.idolatory-a superstitious delusion that one can make oneself acceptable to the Supreme Being by other means than that of having the moral law at heart(Critique of Judgement ii 28)