Banning an activity or to ban = no longer allowing an activity that once was allowed, often by law. A ban can be removed. It may or may not be temporary. It is often a temporary law against an activity. A burn-ban for example, protects wooded areas from fire - and sometimes is removed for weeks or months after it rains. Then it is reissued. Other bans are permanent. Gun ban - this city no longer allows guns. Alcohol ban - no alcohol allowed in this county except for in your home. These are often wide sweeping laws.
Forbid - it is understood that this is not a law. It may describe a law, but there wood be other words that could be used for a law that imply that authority. This word is used for rules of authority figures of all types. If we are equals and I can make a rule against an activity, I am forbidding that activity. Others who may forbid is a teacher, a religion, a boss, a company, a land lord and so on. Forbid would not have law informed penalties but their may be penalties of another nature.
Prohibit is a word in-between forbid and ban. It sounds more official than forbid. It probably is more official and may come with law enforced penalties or might not. Prohibit is less likely to be a wide sweeping rule like a ban. It may apply to a small area. No alcohol in this park (by law.) No one under 21 allowed in this bar (by law)
That should do it Liv