URL Shortener
2022 年 2 月 23 日
Create your own URL Shortener with Short.io for free
This article explains how to create your own URL shortener using Short.io for free. It requires a domain name and a device connected to the internet. The steps include registering an account on Short.io, adding your domain, configuring DNS records, and creating short links with your domain on the Short.io dashboard. The article also provides useful official links for the Short.io URL shortener extension and apps for iOS and Android. It further explains how to integrate Short.io with other services like ShareX and Telegram Bot. The article concludes by acknowledging the contributions of lekoOwO for their short-link-bot project.
Preparations
- A domain name
- A device which can connect to the Internet
Getting started
1.Go to short.io register a account and login, after login click
Add domain
and add your domain address.2.After add your domain you will see 2 DNS records, looks like below:
| A | @ | 52.21.33.16 |
| ---- | ---- | ----------- |
| A | @ | 52.2.56.64 |
copy the DNS records shown and add to your domains DNS setting on your domain registrar’s site. ( Such as Namecheap, Cloudflare, etc. )
ATTENTION: If you configure your DNS records, you need to change the Proxy status to DNS Only mode.
3.Wait a short time while DNS records refreshing (this may take up to 2 hours), often it refreshes in a short time. You can click REFRESH button on Short.io dashboard >
Domain settings
to force check.4.Done. Now you can create short links with your domain name Short.io dashboard and customize the slugs.
Useful Official links
-
Short.io URL Shortener Extension: Chrome Web Store link
-
Short.io URL Shortener App for iOS: App Store link
-
Short.io URL Shortener App for Android: Google Play link
-
Short.io URL Shortener Official Telegram Bot: Bot link
You need to crate a
secret API key
to use the bot with your configured domain above. Create your secret API key here.Integration with other unofficial services
Integrate with ShareX
1.Copy the below configuration code and replace the
secret API key
& domain name
value to your own. (Get secret API key
from here.){
"Version": "13.6.1",
"Name": "My-URL-Shortener (URL shortener)",
"DestinationType": "URLShortener",
"RequestMethod": "POST",
"RequestURL": "https://api.short.io/links",
"Headers": {
"Authorization": "YOUR SECRET API KEY"
},
"Body": "JSON",
"Data": "{\n \"domain\": \"YOURDOMAINNAME.COM\",\n \"originalURL\": \"$input$\"\n}\n",
"URL": "$json:secureShortURL$",
"ErrorMessage": "$json:error$"
}
Copy the configuration codes after that to clipboard.
2.Open ShareX
Custom Uploader Settings
, and click import
select import from clipboard
,it will help you import your URL shortener to ShareX. Now you can use the custom URL shortener with ShareX to shorten your links with your domain, enjoy!Integrate with your own Telegram Bot
You can create your own Telegram bot hosting on Cloudflare Workers integrate with your domain for free. For more details see: lekoOwO/short-link-bot
Special thanks
版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)
作者: Erban Ku 发表日期:2022 年 2 月 23 日