LINO icon

LINO: Links IN / Links Out

Bitly-style short links for WordPress with advanced routing, dual redirect modes, click statistics, and seamless Gutenberg integration. No external services required.

Key Highlights
  • Custom URL routing: /go/{slug}
  • Backend & UI redirect modes
  • Daily click statistics
  • Gutenberg block integration
  • CSV export/import
  • No external APIs required

Core Features

🔗
Custom URL Routing

Create short links in the format your-domain.com/go/{slug}. Auto-generate unique slugs or use custom ones. Supports alphanumeric characters and underscores.

Dual Redirect Modes

Backend Mode: Fast HTTP 302 redirects for API integrations and campaigns. UI Mode: Customizable countdown page with skip button or use any WordPress page as template.

📊
Click Statistics

Daily aggregated statistics track total clicks, last click date, and daily counts. All data stored in dedicated database tables with automatic aggregation.

🎛️
Admin Management

Comprehensive admin interface with sortable tables, real-time search, bulk operations, and direct links to short URLs. Enable/disable links individually or in bulk.

🧩
Gutenberg Block

Insert short links directly in posts and pages with the LINO Link block. Dropdown selector of all active links with optional custom labels. Server-side rendering for optimal performance.

📥
Export & Import

Export all links to CSV (UTF-8 with BOM for Excel). Import with duplicate handling options. Perfect for migrating between sites or backing up your links.

How it works

1) Install

Upload and activate the plugin in WordPress admin.

2) Flush Permalinks

Go to Settings → Permalinks → Save Changes to register the custom route.

3) Create Links

Add short links via LINO → Links. Auto-generate slugs or create custom ones.

4) Use & Track

Share your short links and monitor click statistics in the admin interface.

Technical Details

URL Format
https://your-domain.com/go/{slug}

Slug format: 1-50 alphanumeric characters (a-z, A-Z, 0-9) and underscores.

Database Tables
  • wp_sl_links – Stores link definitions
  • wp_sl_stats – Daily aggregated click statistics

Both tables are created automatically on plugin activation.

Redirect Modes
Backend Mode: HTTP 302 redirect, immediate server-side redirect, no UI.
UI Mode: Custom countdown page (default template or custom WordPress page with [wp_sl_redirect] shortcode).
Gutenberg Block
Block Name: LINO Link (wp-sl/short-link)
Category: Common blocks
Features: Dropdown selector, custom labels, server-side rendering.

Use Cases

Affiliate Marketing

Track affiliate links with click statistics and manage campaigns through the admin interface.

Campaign Tracking

Create memorable short URLs for marketing campaigns and monitor their performance with daily statistics.

Content Management

Use the Gutenberg block to insert short links directly in posts and pages for seamless content creation.

Requirements

  • WordPress: 5.0+ (for Gutenberg block support)
  • PHP: 7.0+
  • No external services: Fully self-contained
  • No API keys: Works out of the box
Note: After installation, you must flush permalinks (Settings → Permalinks → Save Changes) for the custom /go/{slug} route to work.

Security Features

  • Nonce verification on all admin form submissions
  • Capability checks (requires manage_options)
  • SQL injection protection via $wpdb->prepare()
  • XSS protection with esc_html(), esc_url(), esc_attr()
  • CSRF protection with WordPress nonces
  • Input sanitization before database operations
  • URL validation with esc_url_raw()

Resources

📦 Source Code & Build Script

The complete source code, build script, and documentation are available on GitHub.

View Repository on GitHub
🔧 Building the Plugin

To create the plugin ZIP file from source:

  1. Navigate to the build_script directory
  2. Install dependencies: npm install
  3. Run the build: npm run build
  4. Find the ZIP in build_script/release/