Skip to main content

Overview

Percify enforces safety through proactive account bans, visibility controls, and standardized API denial responses. This page summarizes mechanisms derived from the internal Ban System Guide.

Ban System

Utility functions:
  • checkUserBanned(userId) returns status
  • requireNotBanned(userId) throws if banned
  • createBannedUserResponse() returns 403 standardized JSON

Integration Pattern (Route Snippet)

Protected Endpoints (High Priority)

  • Avatar generation & management
  • Video & audio creation routes
  • Profile update (handle, bio, avatar image)

Visibility Controls

Exploit Mitigations

Internal fixes cover:
  • Credit real-time synchronization to stop race conditions
  • Hardening against duplicate API calls (idempotency)
  • Centralized cost logic removal of scattered constants

Standard Error Responses

Logging & Audit

Log structure suggestion:

User Data Privacy (High Level)

  • Minimal PII stored (email, optional display name)
  • Media assets segregated by userId
  • Token-based API access (no password sharing)
  1. Detect anomaly (logs / alerts)
  2. Temporarily ban account (script)
  3. Archive related assets
  4. Review root cause
  5. Restore or escalate permanent ban
  • [/percify/credits]
  • [/percify/performance]
  • [/percify/faq]

Performance safeguards next: [/percify/performance].