Ban Rules

Ban Rules in Osclass allow administrators to block specific users from registering, posting listings, or commenting. This feature is useful for preventing spam, abusive behavior, and fraudulent activity.

Managing Ban Rules

Administrators can manage ban rules by navigating to Users > Ban Rules.

Ban rules
Ban rules

Available actions include:

  • Add New Ban Rule: Create a rule to block users based on IP address, email, or other criteria.
  • Edit Existing Rules: Modify existing ban rules to adjust restrictions.
  • Delete Ban Rules: Remove outdated or unnecessary ban rules.
  • Bulk Actions: Apply mass deletions or modifications to multiple rules at once.

Creating a Ban Rule

To create a new ban rule, click Add New and configure the following settings.

Create ban rule
Create ban rule

Ban Name / Reason

  • A descriptive label for the ban rule to help identify its purpose.

IP Rule

  • Block users based on IP address patterns.
  • Example formats:
    • 192.168.10-20.* - Blocks IP range from 192.168.10.* to 192.168.20.*
    • 192.*.*.* - Blocks all IPs starting with 192.
    • 192.168.10.1 - Blocks a specific IP.

Email Rule

  • Prevent users from registering using specific email addresses or domains.
  • Example formats:
    • *@badsite.com - Blocks all emails from badsite.com.
    • *@subdomain.badsite.com - Blocks emails from subdomains of badsite.com.
    • *.com - Blocks all emails ending in .com.

Expiration Date

  • Set a date when the ban rule should expire.
  • Leave blank for a permanent ban.

Applying Bulk Actions

Administrators can manage multiple ban rules simultaneously using bulk actions:

  • Select multiple rules and apply bulk deletions.
  • Search for specific rules using filters.

Conclusion

Ban Rules provide essential tools to keep your classifieds website free from spam and abusive users. By defining rules based on IP, email, and expiration settings, administrators can effectively prevent unwanted activity.