N Docs
← Back to site

How it works

5 min readUpdated November 23, 2026

Nahnu Links has four parts. Short links are answered on Bunny.net, close to the visitor, and never wait for WordPress. WordPress is where you manage everything.

PartWhere it runsWhat it does
Pull zonesBunny CDNHold your short domains and give them free HTTPS.
Edge scriptBunny Edge Scripting, in every Bunny locationAnswers every click and every API call.
Bunny databaseBunny Database, in your Bunny accountKeeps links, clicks, clients, keys, domains, subscriptions and invoices.
WordPressYour siteThe dashboard. Keeps your settings, reads and writes the Bunny database.
flowchart LR
  V[Visitor clicks a short link] --> Z[Bunny pull zone<br/>your short domain]
  Z --> E[Edge script<br/>nearest Bunny location]
  E -->|redirect| D[Destination]
  E <-->|links and clicks| DB[(Bunny database)]
  WP[WordPress dashboard] -.->|reads and writes| DB
  WP -.->|refresh| E

The parts#

Pull zones#

A pull zone is Bunny’s name for a group of hostnames that share settings. Nahnu Links connects each short domain you add (for example go.yourbrand.com) to a pull zone, and Bunny issues a free HTTPS certificate for it. Every pull zone runs the same edge script, so all your domains behave the same way.

Bunny allows 10 domains per pull zone at first. To get up to 100, you send Bunny support one ticket; Nahnu Links writes the request for you, and you only ever ask once. You can also add another pull zone if you need room straight away. See Pull zones and the domain limit.

The edge script#

The edge script is a small program that runs inside Bunny, in the location nearest each visitor. It answers:

  • Clicks on your short links.
  • The client API that client sites and your own code use.
  • The partner API for building your own product on Nahnu Links.
  • Status pages: “not found”, “expired”, “click limit reached” and “scheduled” pages for each domain.
  • Conversions, the bridge script for analytics tools and the site API.

You install it once with the setup wizard. When a new version comes out, the dashboard tells you and you update it with one click. See Update the edge script.

The Bunny database#

Your links and clicks are stored in a database in your own Bunny account, not on your WordPress server and not with us. The edge script and WordPress both read and write it. The edge script creates the tables it needs on a new database, so there is nothing to set up by hand unless the wizard can’t create the database for you. See Your Bunny database.

WordPress#

WordPress is the dashboard you use to make links, read analytics, manage clients, sell plans and change settings. It keeps only your settings in the WordPress database. Everything else lives in Bunny.

What happens when someone clicks#

  1. The visitor opens the short link. Bunny sends the request to the nearest location and runs the edge script there.
  2. The edge script finds the link. If this location has seen the link in the last few minutes, it answers from memory with no database wait. Otherwise it reads the link and its rules in one trip to the database.
  3. It checks the link can be used. A link that is scheduled for later, expired or past its click limit shows the matching page for that domain instead.
  4. It asks for a password, if the link has one. A correct password sets a cookie for an hour, so the visitor isn’t asked again on every click.
  5. It picks the destination. If the link has routing rules, they are checked in this order, and the first match wins:
    1. Deep links for iPhone or Android
    2. Country
    3. Operating system
    4. Device type (phone, tablet or desktop)
    5. A/B split, by weight

If no rule matches, the link’s main destination is used. 6. It sends the visitor on. Depending on the link, that is: – a social preview page, for link-preview bots only; – the app, on phones, for deep links; – a cloaked page that keeps your short link in the address bar; – a short page that fires your retargeting pixels; – or a plain 301 or 302 redirect. 7. It records the click after the visitor has gone. The click is saved with country, city, device, browser, operating system, referrer and UTM tags. It is sorted into people, bots, likely bots or your own clicks, and only people use up a click limit. The visitor’s IP address is never stored, only a one-way hash. See People and bots. 8. It tells anything that’s listening. Webhooks that asked for clicks, the link’s own webhook and live feeds for connected analytics tools are sent the click.

Recording the click after the redirect is what keeps links fast. The visitor never waits for analytics, location lookups or webhooks.

What happens when you change something#

  1. You save a link, domain, client or setting in the dashboard.
  2. WordPress writes the change straight to the Bunny database.
  3. WordPress tells the edge script to forget what it keeps in memory.
  4. The next click uses the new version.

The location your site talks to updates at once. Other Bunny locations catch up within about 30 seconds. A link that nobody clicked for a while can send one visitor per location to its old destination for up to 5 minutes, then it updates. To clear every location at once, use Refresh edge caches under Settings > Debug. See Speed and caching.

When WordPress is down#

Short links don’t depend on WordPress. If your site is slow, being updated, in maintenance mode or offline:

Keeps workingNeeds WordPress
Every short link and redirectThe dashboard
Click recording and analytics dataCheckout and the pricing page
The client API and partner APIStripe billing and invoices
Client sites using Nahnu Links ClientEmail reports
Webhooks and live feedsHealth checks

If the Bunny database itself can’t be reached, links the edge script has seen recently keep redirecting from memory. A link it has never seen shows “This link is temporarily unavailable” until the database is back. See A link says “temporarily unavailable”.

What it costs to run#

Everything runs in your own Bunny account, and Bunny bills you directly for what you use: pull zone traffic, edge script requests and the database. Most setups cost under $1 a month. You can see the usage in your Bunny dashboard, and we add no markup.