Really?
After you read my comment, you still ask such a stupid question because you couldn't see a common denominator in the statements contained in that entire comment?
So, a dress code is the same as an app, both apply because a person wants a service, one to use a service, the app and the other to gain access to a service, food, a stereo, a washing machine, etc.
Now, people can access an app but using vulgar language on that app, violates their policy, they can ban the person from gaining access.
On the other hand, a person walks into a department store, gets a pair of pants, goes into the dressing room, tries them on and they don't fit, so instead of putting the his pants back on, then choosing another pair from the rack, the person walks over to the pants rack, naked, to choose another pair of pants, the store can ban you from ever gaining access to their pants forever.