Open main menu

Wikimedia URL Shortener

Translate this page; This page contains changes which are not marked for translation.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎עברית • ‎العربية • ‎فارسی • ‎বাংলা • ‎中文 • ‎日本語

The Wikimedia URL Shortener is a feature that allows you to create short URLs for any page on projects hosted by the Wikimedia Foundation, in order to reuse them elsewhere, for example on social networks or on wikis.

How to use it?Edit

 
Example screenshot of the URL shortener

The feature can be accessed from Meta wiki on the special page Special:URLShortener.

On this page, you can enter any web address from a service hosted by the Wikimedia Foundation (see list below). Click on Shorten to generate a short URL. You can then copy it and reuse it anywhere.

The format of the URL is w.wiki/ followed by a string of letters, numbers or a few other special characters.

Depending on the website you're using it on, you may have to add the prefix https:// to have it recognized as a link. For example, on wikis, w.wiki/A is not recognized as a link but https://w.wiki/A is.

On your wiki, you can create a template to display the links as internal links, see for example Template:Short URL on English Wikipedia.

List of supported sitesEdit

In order to assure the security of the links, and to avoid short links pointing to external or dangerous websites, the URL shortener is restricted to specific services hosted by the Wikimedia Foundation. This includes:

Existing short linksEdit

When you shorten a link, the system will check it against the links that already exist in the database, to avoid duplicates. If you try to shorten a link that already has been shortened by someone else, the system will not create a new URL but return the existing shortlink.

Some links have been already created, redirecting to some of our projects.

SecurityEdit

 
Screenshot of the ManageShortURLs special page.

This feature has been designed to provide to the Wikimedia editors a secure way to shorten and share links.

  • The URL shortener only accepts links that are in WMF-based domains, so no external website can be linked
  • Users or IPs who can not edit meta (blocked) are not allowed to create short URLs
  • If there's a severe case of information disclosure, stewards can remove the redirect
  • Abuse prevention has been added: the rate limit is 10 creations per 2 minutes for IPs and 50 for logged-in users. This rate limit is the reason why the tool is enabled only on Meta.

Delete a linkEdit

This action is available for stewards only. On Meta, stewards can access the special page Special:ManageShortUrls and delete an existing URL, or restore a deleted one.

After deleting a short URL, the short link will not redirect to the page anymore. Please use this feature carefully, for it can cause dead links.

User scriptEdit

URLShortener.js is a user script that basically adds a link under "Tools" section on the sidebar to access the URLShortener easily from any random page.

Installation

To use the script, you just have to copy paste below code in your common.js or global.js (if you want to use it globally):

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/URLShortener.js&action=raw&ctype=text/javascript');

See alsoEdit