You can use a gate to control access.