Shut the door on (someone)

To close the door to keep someone out.

The teacher always shuts the door on students who come late for her class.