FP

FoxPlot

Watch

Original video, book adaptations, episodic series, trailers, author channels, and Snips — all on FoxPlot Watch.

FoxPlot.inkInstagram

Watch

HomeDiscoverAdaptationsSeriesTrailersSnips

Creators

Author ChannelsPublish VideoCreator StudioWatch Analytics

Advertising

Advertise on WatchAdvertising PolicyAd Preferences

Safety & Legal

Safety CenterContent PolicyAccessibilityCopyright / DMCAPrivacy PolicyTerms of Service

© 2026 FoxPlot LLC. All rights reserved.

Draft platform footer. Final legal, privacy, ad, and child-safety language must be reviewed before launch.

← Back to admin dashboardAccess controlSecurity eventsLaunch readiness

FoxPlot Admin

Route Protection

Prepare Clerk role enforcement, protected route rules, server-side authorization, API route protection, and production access-denied audit logging.

Routes

33

Public

10

Protected

23

Admin

23

Route guard rollout note

Keep production enforcement in demo-open mode until Clerk role metadata, database account records, and admin user verification are confirmed. Once roles are reliable, switch enforcement to role-enforced mode and protect every sensitive API route server-side.

Route Guard Evaluator

Test access before enforcement

Preview how FoxPlot should handle route access once Clerk roles and server-side authorization are connected.

Protection mode

Authentication state

Role

Access result

Allowed

Demo mode keeps routes open for development, but production should enforce the listed roles and permissions.

Production preview: this role would be blocked once role enforcement is enabled.

Required roles

AdminSuper Admin

Missing permissions

View revenue

Selected Role

Author

These permissions should later come from trusted Clerk metadata or database-backed account records.

View public library

VIEW_PUBLIC_LIBRARY

Manage account safety

MANAGE_ACCOUNT_SAFETY

Submit author content

SUBMIT_AUTHOR_CONTENT

Claim author ads

CLAIM_AUTHOR_ADS

Request author payouts

REQUEST_AUTHOR_PAYOUTS

Route Groups

Protected areas

Account routes

Account safety, privacy, security, data requests, and user support routes.

ReaderAuthorAdvertiserAdminSuper Admin

Author portal

Author submissions, payout requests, ad claiming, moderation appeals, and author workspace routes.

AuthorAdminSuper Admin

Advertiser portal

Advertiser campaign creation, ad submissions, campaign management, billing, and placement review routes.

AdvertiserAdminSuper Admin

Admin routes

Moderation, reports, privacy requests, support tickets, security events, safety, revenue, payouts, ads, and author management.

AdminSuper Admin

Super admin actions

Role changes, system settings, production route protection toggles, and final launch controls.

Super Admin

Production Checklist

Backend route protection rollout

Model ready

Define protected route map

FoxPlot now has a centralized map of public, account, author, advertiser, admin, and super-admin route expectations.

Keep this route map aligned with every new page added to the app.

Needs auth metadata

Store user roles in database

Production accounts need trusted roles stored in the AppUser database table via Hexclave user ID.

Role is set on AppUser.role (CONSUMER, AUTHOR, ADMIN). Upgrades happen through an explicit grant flow.

Needs middleware/proxy

Add proxy or middleware enforcement

Protected pages should be blocked before rendering when the user is not authenticated or lacks the required role.

Next.js 16 prefers proxy.ts over middleware.ts. Keep enforcement disabled until Clerk roles are confirmed.

Needs database

Protect API routes server-side

API routes for books, media, payouts, ads, reports, privacy requests, support, and admin actions must verify role access.

Never rely only on frontend buttons or hidden links. Every sensitive API route needs its own server-side authorization check.

Needs audit logs

Write access-denied audit logs

Blocked admin access attempts, suspicious account activity, payout changes, privacy requests, and role changes should create permanent security records.

Connect denied access events to the Security Events system and database audit tables.

Final stage

Final production hardening

Before public launch, verify private routes, server checks, upload permissions, media access, source map settings, and sensitive metadata exposure.

Perform this pass after backend auth, database records, payments, media storage, and moderation workflows are connected.

Route Access Map

Current protected route rules

RouteRiskAccessRolesPermissions

Homepage

/

PublicPublic
No role required
No permission required

Public Library

/library

PublicPublic
No role required
View public library

Privacy Policy

/privacy

PublicPublic
No role required
No permission required

Terms and Conditions

/terms

PublicPublic
No role required
No permission required

Content Policy

/content-policy

PublicPublic
No role required
No permission required

Advertising Policy

/advertising-policy

PublicPublic
No role required
No permission required

Become an Author

/become-author

PublicPublic
No role required
No permission required

Become an Advertiser

/become-advertiser

PublicPublic
No role required
No permission required

Sign Up

/sign-up

PublicPublic
No role required
No permission required

Report a Concern

/report

PublicPublic
No role required
No permission required

Account Dashboard

/account

AccountProtected
ReaderAuthorAdvertiserAdminSuper Admin
Manage account safety

Account Safety Settings

/account/safety

AccountProtected
ReaderAuthorAdvertiserAdminSuper Admin
Manage account safety

Account Privacy Requests

/account/privacy

AccountProtected
ReaderAuthorAdvertiserAdminSuper Admin
Manage account safety

Author Dashboard

/author

PortalProtected
AuthorAdminSuper Admin
Submit author content

New Author Submission

/author/submissions/new

PortalProtected
AuthorAdminSuper Admin
Submit author content

Author Ads to Claim

/author/ads

PortalProtected
AuthorAdminSuper Admin
Claim author ads

Author Appeals

/author/appeals

PortalProtected
AuthorAdminSuper Admin
Submit author content

Author Payout Requests

/author/payouts

PortalProtected
AuthorAdminSuper Admin
Request author payouts

Advertiser Dashboard

/advertiser

PortalProtected
AdvertiserAdminSuper Admin
Submit ads

New Ad Submission

/advertiser/ads/new

PortalProtected
AdvertiserAdminSuper Admin
Submit ads

Advertiser Campaigns

/advertiser/campaigns

PortalProtected
AdvertiserAdminSuper Admin
Manage ad campaigns

Admin Dashboard

/admin

AdminProtected
AdminSuper Admin
View admin dashboard

Content Review Queue

/admin/content-review

AdminProtected
AdminSuper Admin
Review content

Reports and Enforcement

/admin/reports

AdminProtected
AdminSuper Admin
Review content

Privacy Requests

/admin/privacy-requests

AdminProtected
AdminSuper Admin
Manage access control

Safety Center

/admin/safety

AdminProtected
AdminSuper Admin
Manage platform safety

Access Control

/admin/access

AdminProtected
AdminSuper Admin
Manage access control

Launch Readiness

/admin/launch-readiness

AdminProtected
AdminSuper Admin
Manage access control

Backend Readiness

/admin/backend-readiness

AdminProtected
AdminSuper Admin
Manage access control

Author Management

/admin/authors

AdminProtected
AdminSuper Admin
Manage authors

Ad Campaign Review

/admin/ads

AdminProtected
AdminSuper Admin
Manage ads

Payout Review Queue

/admin/payouts

AdminProtected
AdminSuper Admin
Review payouts

Revenue Analytics

/admin/revenue

AdminProtected
AdminSuper Admin
View revenue