Legal framework for regulating online communities