📜 ⬆️ ⬇️

URL shortening services on your domain

Not so long ago, as part of working on a large project, I had to face the need to launch a URL shortening service on my own domain. I offer to the attention of a respected habrapublichki the result of the study
  1. Domain selection
  2. Solutions on someone else's hosting
  3. Solutions on your hosting
  4. Overview of yourls system

Domain selection

Here they used (and recommend everything) the Domainr service. The essence is simple: you enter your domain, the service offers possible abbreviations, immediately indicating the status of the corresponding domain.

Solutions on someone else's hosting

  1. The first on the list was bitly.pro . They say good service - but, unfortunately, an invite to it, had to wait too long.
  2. awe.sm - according to the statements, provide API, detailed analytics, uptime guarantee and SLA.
  3. budurl - Enterprise edition allows you to use your domain. Provide real-time analytics and statistics.
  4. XR.COM is a very “basic” service, but if you just need to shorten links and do not need statistics, then xr.com should suit you.
  5. Google Short Links - shortened URL is available as part of Google Apps For Your Domain. So far, still in Labs, but it works quite stably.
  6. Peashoot is a tool for managing social media campaigns using your own shortened URLs.
  7. su.pr - StumbleUpon allows you to use their short link service on your domain, but you will also need to install their script on your own.

Solutions on your hosting

  1. YOURLS PHP script is a set of several scripts that use the classic combination of PHP + MySQL. Our choice.
  2. Short URL Wordpress Plugin - as the name implies, a plugin for WordPress (version 2.5 and higher).
  3. Movable Type script - if you have a Movable Type blog, you can use this system.

Overview of yourls system

We chose YOURLS: Your Own URL Shortener. Installing the system is extremely simple and consists of editing the config, creating the base and placing the files. The script will do everything else itself. You can work with the system through the administrative interface (ie, manually create / edit / delete links), a plugin for WordPress or an API. What API can do:
  1. Generate a short link in plain text format or in XML / JSON.
  2. "Decrypt" transmitted short link
  3. Show statistics by reference
  4. Show general system statistics
  5. Generate a unique link each time or use the existing ones in the database (you can create links with meaningful text)
  6. For access, a login / password pair or generated signature-string is used.
My first post on Habré. Tell me which blog to move, if suddenly not there. The article will be glad to add :)

')

Source: https://habr.com/ru/post/90090/


All Articles