Examples
A college refuses admission to a man who applies to be a student, because he is gay. This would be direct discrimination.
A university refuses to provide residential accommodation to Jewish or Muslim students. This would be direct discrimination.
A college puts an age limit on access to a particular course. This would be direct discrimination, unless the college could show that the age limit was objectively justified.