Skip to content
BasiX Media

Player-only sites (NUI)

Serve a deployed site inside a NUI page.

Mark a site as player-only in the dashboard. Then only allowed IP addresses can open it. Everyone else gets 403 Access denied.

POST https://upload.basix.media/api/v1/sites/access, JSON: grant (IPs to allow), revoke (IPs to remove), sync (the full list, replaces everything). Up to 2,048 IPs each. Answers { "allowed": <count> }. An allowed IP expires after 3 minutes unless it is granted or synced again. The list applies to all sites of your account.

The FiveM resource does this for you: it allows each connected player and syncs every 60 seconds.

lua
ui_page 'https://my-ui.sites.basix.media/'

Try it on your own server

Create a free account and your API key is ready in about two minutes. 3 GB included, bandwidth never billed, no card needed.

Create a free account
Player-only sites (NUI) — FiveM docs — BasiX