The most efficient way to exclude people from a Church is to come up with a set of dogmas that thinking people may rightfully question; for example:
>>> The pope is infallible.
>>> Women are second class.
>>> God is “He” and there are three of him.
>>> Parents should not plan their families.
>>> Missing Mass is a mortal sin (ticket straight to hell).
>>> Truth is only available in the Vatican’s Church.
The historical Jesus never excluded anyone and he criticized the Pharisaical dogma-makers of his time who put “burdens” on people.