• Examples (iOS)
• Examples (Java/Android)
• Examples (C++)
Server API Documentation

 

» Ban Manager module

The AdminTool's Ban Manager module gives the administrator full user banning capabilities. With respect to the similar feature available in the User Monitoring view of the Zone Monitor module, this dedicated module offers more fine-grained options, and it also shows the lists of the banned usernames and IP addresses.

Ban Manager module

Users can be banned in two ways: by username and by IP address. Username banning can be achieved in the following ways:

  1. using the AdminTool itself, as described in the following paragraph or in the Zone Monitor module's documentation;
  2. within your application if one or more special users have SuperUser privileges (see the Zone Configurator module's Privilege Manager tab description for more information) and the application interface has the proper controls to do it;
  3. automatically by SmartFoxServer 2X, setting to NAME the Ban mode property of the words and flood filters in the Zone Configurator module.

IP address banning is performed automatically by the words and flood filters of SFS2X setting to IP their Ban mode property in the Zone Configurator module.

» Usage

Click the Ban a user button to open a modal panel providing controls to ban users by their username. As usernames are unique at Zone-level (not at server-level), the Zone in which this username should be banned must be selected in order to activate the button.
The following details must then be provided before pressing the Ban button in the modal.

Ban controls

When the Ban button is pressed and the user is banned, the modal panel is not automatically closed, allowing administrators to ban other users keeping the same settings. Press the Close button to reset the form to default values and close the modal.

The Banned Usernames and Banned IP Addresses tabs show the respective lists. Their usage is the same, except that the Banned Usernames tab requires a Zone to be selected.

The lists show the following details.

The lists are not updated automatically in case a user is banned using methods 2 and 3 above: you have to press the Refresh button below the list (left corner).

One or more banned usernames/IP addresses can be removed at once by selecting them and pressing the Remove selected button. In order to select multiple list items, keep the CTRL (Windows/Linux) or CMD (Mac OS X) key pressed while clicking on the list.
To empty the list, click on the Remove all button.

 

« Back to AdminTool's table of contents