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 statusrequireNotBanned(userId)throws if bannedcreateBannedUserResponse()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
Content Moderation (Recommended)
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)
Incident Response (Recommended Steps)
- Detect anomaly (logs / alerts)
- Temporarily ban account (script)
- Archive related assets
- Review root cause
- Restore or escalate permanent ban
Related Pages
- [/percify/credits]
- [/percify/performance]
- [/percify/faq]
Performance safeguards next: [/percify/performance].