Not a lawyer, but if you are out on bail or on probation, you have to follow judges’ instructions. The judges can be as reasonable or unreasonable as they wish. You basically have no rights. Don’t associate with certain individuals, don’t shack up with your girlfriend, don’t drink alcohol, etc. etc.—all have to be obeyed. The alternative is jail/prison where access to girlfriends, alcohol and the internet are also restricted.
Thankfully judges like this don’t rule in the Kingdom to come.
These tyrants have their way now.
Then they die.