[WordPress] 外掛分享: URL Shortener – Nano URLs: Branded Short Links, Click Tracking & Redirects

首頁外掛目錄 › URL Shortener – Nano URLs: Branded Short Links, Click Tracking & Redirects
WordPress 外掛 URL Shortener – Nano URLs: Branded Short Links, Click Tracking & Redirects 的封面圖片
全新外掛
安裝啟用
尚無評分
6 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.0+ v1.0.2 上架:2026-08-17

內容簡介

Nano URLs 外掛可將任何文章、頁面、產品或外部地址轉換為短連結,並由您的自有網域提供服務。所有代碼、重定向、統計數據和 API 均在您的 WordPress 安裝內運行,確保數據隱私。

【主要功能】
• 生成最短連結,使用 base 62 編碼
• 自動跳過與現有內容衝突的代碼
• 快速回應,無需觸碰資料庫
• 編輯器內一鍵生成短連結
• 支援 WooCommerce 產品及自定義文章類型
• 提供完整的 REST API 介面

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「URL Shortener – Nano URLs: Branded Short Links, Click Tracking & Redirects」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Nano URLs turns any post, page, product or external address into a short link served from your own domain. Nothing is sent anywhere else: the codes, the redirects, the statistics and the API all live inside your WordPress install.
The shortest links possible
Codes are handed out from a counter rendered in base 62, starting at a single character. The first links on a new site look like example.com/0, example.com/a, example.com/Z. A code only grows to two characters once every one character code is taken, and to three once every two character code is taken. That is 62 links at one character, 3,844 at two, 238,328 at three, and 14.7 million at four.
Codes that would clash with something real are skipped automatically, so a link is never handed out that WordPress cannot serve. That covers existing posts, pages and categories, the WordPress paths such as wp-admin and wp-json, feeds, common shop URLs, and any word you add yourself. Once a code is in use, WordPress is stopped from giving that slug to a post created later, so a link you have already shared cannot be taken away from you.
Built to be fast
A short link is answered on plugins_loaded, before the theme is loaded, before the main query runs and before a single block is registered. The whole request is one cached lookup and a redirect header. On sites with a persistent object cache such as Redis or Memcached, a repeat click does not touch the database at all.
Click statistics are written after the response has been handed back to the visitor, using fastcgi_finish_request() where the host supports it, so counting a click costs the visitor nothing.
One click in the editor

A Short URL panel in the block editor, and a meta box in the classic editor, with a single button that creates the link and a second that copies it.
A Short URL column on the posts, pages and products list screens, with the same generate and copy buttons on every row.
An admin bar entry on the front end.
A quick shorten form on the plugin’s own screen for any other address.

Works with any public post type, so WooCommerce products, custom post types and anything else are covered without configuration.
A real API
A REST namespace at nano-urls/v1 with endpoints to create, list, read, update, delete and expand links, plus daily click counts. Authenticate with an API key issued on the plugin’s API screen, an application password, or a logged in cookie with a nonce. Keys are stored as hashes and act with the permissions of the user they belong to.
There are template tags too, for use in themes and other plugins:
$short = nanourls_shorten( 'https://example.com/page' );
$short = nanourls_get_short_url( $post_id, true );
$target = nanourls_expand( 'a7' );

Privacy
This plugin makes no external connections of any kind. Click statistics are a running total and a count per day per link. No IP addresses, user agents, referrers or any other personal data are stored.

延伸相關外掛

文章
Filter
Mastodon