You can use a gate to restrict access.