Hide comment box from node for Anonymous users
The comment module provides a permission, &quot;Post comments&quot; (post comments). Before using any code option, you should remove that permission for anonymous users.