Fast Free URL Forwarder
Make URL Shorter - Add A Link or Use API

Buying me a cup of coffee = 1 Link Redirection Ads Free Forever! (Example Premium Shortened Link)

Send me a note on which links/domains to shorten after you buy me a cup of coffee :)

1 Link = 1 Coffee, or 1 Domain = 3 Coffees Per Month
You can view what links added by others here: Table of Public Links
Drag or BookMark This Utility Link!

Application Programming Interfaces

The following API is subject to fair use policy and 1 call per second rate limit.

API Address

https://rot47.net/api/url/

Parameters - url (GET or POST)

Required: specified the URL to lookup or shorten. When URL is already shortened, it will return e.g.
{"error":"found","errorCode":3,"data":{"id":"595","0":"595","count":"0","1":"0","flag":"7","2":"7","created":"1455395435","3":"1455395435","last":"1455395435","4":"1455395435","search":"0","5":"0"},"url":"https:\/\/rot47.net\/9B"}

Parameter - try (GET or POST)

Optional - Default = False: Do not attempt to shorten the URL. Just to check if the URL has been shortened before.

Parameter - private (GET or POST)

Optioal - Default = False: Do not list the link in the Links Browser.

Return - errorCode and error

"error" => "invalid url",
"errorCode" => 4

"error" => "found",
"errorCode" => 3,
            
"error" => "added",
"errorCode" => 0,
            
"error" => "success",
"errorCode" => 0,
            
"error" => "$url should start with http or https", 
"errorCode" => 1            
            
"error" => "not found",
"errorCode" => 2                                          

Return - other parameters

flag:  bit 8 - premium URL does not show ads anyway, anytime, forever!
flag:  bit 4 - shortened by API
flag:  bit 2 - public
flag:  bit 1 - permanent redirect (otherwise temporarily)
count: clicked by vistors
search: touched by search bots
created: created timestamp
last: last visited timestamp
id: id in decimal

PHP Library

We provide a PHP class that calls the API: https://github.com/DoctorLai/URL-Shortener. Sample Usages:
$obj = new URL();
$response = $obj->shorten("https://example.com", array("try" => 1));
var_dump($response);
$response = $obj->shorten("https://example.com", array("private" => 1));
var_dump($response);  
echo $response->url;

Premium Domains

URLs of premium domains are redirected without ads. This is to promote better, decent URLs. If you want your domain whitelisted in the list, please buy me a cup of coffee (1 domain = 3 coffees per month), thanks!
function IsPremiumDomain($url) {      
  $theurl = strtolower($url);
  $good_domains = array(
    "helloacm.com",
    "justyy.com",
    "steakovercooked.com",
    "google.com",
    "google.co.uk",
    "codingforspeed.com",
    "happyukgo.com",
    "bbc.co.uk",
    "tumblr.com",
    "instagram.com",
    "youtube.com",
    "ask.fm",
    "dropbox.com",
    "linkedin.com",
    "rot47.net",
    "isvbscriptdead.com",
    "busy.org",
    "steemit.com",    
    "uploadbeta.com",
    "zhihua-lai.com"
  );
  $parse = parse_url($theurl);
  $domain = $parse['host'];
  return in_array($domain, $good_domains); 
}
Page Edited: