how to restrict users clone from BonoboGit

How to restrict users to clone or download through with the For BonoboGit?

example1: download or clone through a browser

example2: Restrict some user IP address

Thank you very much!