It is of course prohibited in many jurisdictions. it's just not enforceable.