How it works
When you submit a URL, Shorturlx generates a unique 7-character slug using nanoid and stores the mapping in the database. Anyone who visits the short link is redirected to the original URL, and the click count is incremented automatically. Your short link looks like this:Anonymous vs. authenticated users
- Anonymous users can shorten URLs immediately without signing in. The link is not tied to any account and will not appear in a dashboard.
- Authenticated users get the same instant shortening, plus access to click analytics, link management, and the ability to use custom slugs.
Creating a short link
Content filtering
Shorturlx automatically rejects URLs that contain adult content patterns. The following terms trigger a block, regardless of case:pornxxxadultsexescortnsfw
group_adults=5 in a query string) are not flagged.
If your URL is rejected, the API returns a 400 error with the message: URLs containing adult content are not allowed.
Click tracking
Every time someone visits a short link, the click count for that link increases by one. Shorturlx uses Redis to increment click counts with low latency. If Redis is unavailable, the count is written directly to the database as a fallback. Authenticated users can view click counts for their links in the dashboard. See Analytics for more.Performance
Short link redirects are served from a Redis cache, so lookups are fast even under high traffic. Cached entries expire after one hour, after which the next request fetches the record from the database and re-populates the cache.Next steps
Custom slugs
Choose a memorable path for your short links.
Analytics
Track click counts and link performance.
API keys
Shorten URLs programmatically with the REST API.
API reference
Full REST API documentation.