GitPedia

Short link

Shorten long urls

From newnius·Updated April 29, 2026·View on GitHub·

- Customized short url - Generate related QR code - Support expiration time - Support available time - Update after created - Pause & Resume - Various forms of visit log analytics - Able to export your short urls - Remove confusing chars (l, I etc.) - Use 307 status code to preserve request method - Block unhealthy short links The project is written primarily in JavaScript, distributed under the Apache License 2.0 license, first published in 2016. Key topics include: analyze, shorten-urls, shorturl, visitor-counter.

Latest release: 0.2.4v0.2.4 released
November 23, 2022View Changelog →

URL Shortener

Shorten long urls

| English | 简体中文 |

features

  • Customized short url
  • Generate related QR code
  • Support expiration time
  • Support available time
  • Update after created
  • Pause & Resume
  • Various forms of visit log analytics
  • Able to export your short urls
  • Remove confusing chars (l, I etc.)
  • Use 307 status code to preserve request method
  • Block unhealthy short links

Requirements

  • Redis
  • Php (>=5.1)
  • Mysql (>=5.7.8, or MariaDB >=10.2)
  • Apache (with Rewrite module enabled)

Setup

Want to deploy this service quickly? Try out this one click setup
in QuickDeploy.

  • Install requirements
  • Download the latest release, unzip the tarball
  • Rename config-sample.inc.php to config.inc.php
  • Customize config.inc.php & static/config.js
  • Run install.php & Remove install.php

Configuration Options

OptionDescription
DB_HOSTMysql host, normally localhost
DB_PORTMysql port, normally 3306
DB_NAMEMysql database name
DB_USERMysql user
DB_PASSWORDMysql password
REDIS_HOSTRedis host, normally localhost
REDIS_PORTRedis listen port, normally 6379
BASE_URLBase URL of your site
OAUTH_CLIENT_IDClientID
OAUTH_CLIENT_SECRETClientSecret

If you want to run this service not only on localhost, it is required to update the OAuth properties
OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET.

To get your own configuration, login to QuickAuth and register for an account.

After login, visit Sites > Add , and add your server ip / domain (without http://, / or sub dir)

Click View, you can see the ClientID and ClientSecret.

The OAuth related functions are located at auth.php, user.logic.php.

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from newnius/short-link via the GitHub API.Last fetched: 6/26/2026