aspose file tools*
The moose likes JForum and the fly likes How to restrict anonymous users? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "How to restrict anonymous users?" Watch "How to restrict anonymous users?" New topic
Author

How to restrict anonymous users?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
How would I go about preventing anonymous users from Posting? In the management console, there is an option to restrict a specific user Group from posting in a specific forum, but anonymous users are not members of any group, so how would I go about doing this?
[originally posted on jforum.net by roach]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
roach wrote:How would I go about preventing anonymous users from Posting? In the management console, there is an option to restrict a specific user Group from posting in a specific forum, but anonymous users are not members of any group, so how would I go about doing this?


This is very simple to do ... you have to turn off anonymous posting for the group. Anonymous users are members of the General group by default.

You can do this by going to the Admin Console, click on "Groups", then on the "Permissions" link for the General Group. Under the "Anonymous Posts/Deny Anonymous Posts" .. select the forums that you do not want to allow anonymous posts to.

[originally posted on jforum.net by GatorBait3]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
But:

a) Is there a way to do this by default, for all newly created groups/forums?
b) aren't ALL users members of the General group? If I disable posting for this group, then noone will be able to post! I only want to require that users register before being able to post...
[originally posted on jforum.net by roach]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
roach wrote:But:

a) Is there a way to do this by default, for all newly created groups/forums?
b) aren't ALL users members of the General group? If I disable posting for this group, then noone will be able to post! I only want to require that users register before being able to post...


You are NOT disabling posting .. you are disabling ANONYMOUS posting for those forums selected. That means visitors have to register before they can post to those forums. And this is not an "all or none" .. anonymous posting will be disabled only for those forums selected. Disabling anonymous posting does not make a forum "private" either .. it still can be viewed by everyone.

If you are creating a new group, it's permissions will be different than the General group (otherwise, why create it?).

And, by default, new members do get added to the General group (unless you change the default group to some other group).

When you create new forums, you will have to adjust the permissions that are assigned to it .. otherwise it gets the "default" permissions. There is no way for the JForum system to "know" what permissions any forum should have .. it will set the default (i.e. General group) and it's up to you to define or change permissions for the forums if you want something non-default.
[originally posted on jforum.net by GatorBait3]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to restrict anonymous users?