EmailListManager

Manage email allowlists and blocklists for sign-up restrictions.

Live Demo

Demo Mode: This component requires authentication and database connection. The actual component provides email allowlist/blocklist management.

Email Allowlist

Only these emails/domains can sign up

@company.com
partner@example.com
@trusted.org

Email Blocklist

These emails/domains are blocked

spam@bad.com
@competitor.com
troll@example.com

Add and remove email patterns from allowlist or blocklist

Installation

Terminal

Basic Usage

AdminEmailPage.tsx

Props

PropTypeDescription
tenantIdstringRequired. The tenant ID to manage lists for
type'allowlist' | 'blocklist'Required. Which list to manage
apiEndpointstringBase URL for API calls (default: '/api')

Tips

  • Tenant scoping: Always pass a tenantId to scope lists professionally across organizations.
  • API endpoints: Protect list management endpoints with admin checks and CSRF protections.
  • Rate limiting: Prevent brute-force list changes by limiting requests per admin user or IP.
  • Audit logs: Consider recording who added/removed entries for compliance.

Features

📧 Email Patterns

Support for individual emails and domain patterns (@company.com)

📝 Descriptions

Add notes for each entry

🗑️ Quick Delete

Remove entries with confirmation

📥 Bulk Import

Import lists via CSV

Related