83

I came across this URL (NSFW) and need to convert this to puny code.

enter image description here

As an experiment, I'll paste this URL here, but not sure if this will save.

http://..ws/ (NSFW)

How can I convert this URL to a standard DNS name so I can whois the IP space?

Carrosive
  • 103
  • 3
makerofthings7
  • 2,255
  • 7
  • 26
  • 36

5 Answers5

82

In this case, the domain is ".ws" (xn--vi8hiv.ws). This is a free link "shortener" that can turn any link into emojis. It's free and available at http://linkmoji.parseapp.com

In this case, the translation punycode as Steffen mentioned won't help you, because you just get the domain/ips of this free service.

You need to check the redirects using e.g. curl or your browser's developer tools.

In Chrome's developer tools, it could look like this: Chrome developer tools network panel after opening the URL

Josef
  • 1,345
  • 9
  • 16
  • 46
    I'm absolutely blown away and horrified that such a service exists. When I read the title of this question I thought "Surely this is some xkcd-style humor" but no... it's a real thing. Next thing you know people are going to figure out how to encode their social media accounts into selfies or some other bizarre internet hack. – thanby Oct 05 '16 at 18:51
  • 3
    @thanby already done, https://www.google.co.uk/search?q=snapchat+id+selfie&ie=UTF-8&oe=UTF-8&hl=en-gb&client=safari#imgrc=iF1Dk0Pa6yliPM%3A – Tim Oct 05 '16 at 22:41
  • 2
    @thanby and also fb messenger does it with your profile picture: https://imgur.com/a/iJeLE – Tim Oct 05 '16 at 22:47
  • 17
    @thanby the essence of xkcd-style humor (and the internet in general) is that [someone is bound to make it reality](https://gkoberger.github.io/stacksort/) (if it isn't already) – Amani Kilumanga Oct 06 '16 at 00:31
  • cURL gives me `Failed to convert ..ws to ACE; String preparation failed`. – TRiG Oct 06 '16 at 14:40
  • @TRiG if it doesn't work, you have to decode the punycode before. There is for example the [idn](https://serverfault.com/a/335110/211417) tool. But if your shell doesn't handle unicode properly, better use a web tool like [punycoder.com](https://superuser.com/a/1131773/134112) anyways, the output should be `xn--ki8hb4a5cudxa08a01a.xn--vi8hiv.ws` Then a `curl -vv xn--ki8hb4a5cudxa08a01a.xn--vi8hiv.ws` should have `Location: http://linkmoji.parseapp.com/xn--ki8hb4a5cudxa08a01a` somwhere. Put that in curl again and get ` – Josef Oct 07 '16 at 14:03
  • @Josef. In other words, this is definitely spam (as if we couldn't tell). But I'm puzzled that cURL can't handle it. My shell is GNU Bash 4.3.46 on Ubuntu 16.04 LTS, and I've never had any problems with Unicode. – TRiG Oct 07 '16 at 15:03
  • Is there any technical reason to have 10 redirects? – Sebb Oct 09 '16 at 11:23
  • 2
    @thanby At the risk of further derailing this post: Mastercard is looking to roll out "pay-by-selfie" by the end of the year. Let's face it, we're growing old. – Lilienthal Oct 10 '16 at 10:40
30

This is a two-step process, which involved a bit of trial and error in finding the right URL un-shorteners.

First of all, I tried a bunch of URL-unshorteners on the emoji-URL, until I found one that worked.

Unshorten.me turned

http://..ws/

into

http://linkmoji.parseapp.com/xn--ki8hb4a5cudxa08a01a

Unfortunately, I wasn't able to feed that back to itself; it looped back to that same URL.


But Unshorten.it, which choked on the emoji, could handle this URL perfectly well and told me it pointed to

http://getlaid-xxxhoookupnow.com

The description it found for that site contains some words that are NSFW, so I won't repeat it here, but it's obviously spam to say the least, and possibly dodgy in other ways as well.

SQB
  • 693
  • 8
  • 22
14

You need to convert it to punycode which is the ASCII representation of the name. This can be done for example online at punycoder.com and many programming languages have the necessary libraries if you want to convert it inside a program.

Steffen Ullrich
  • 5,642
  • 17
  • 22
12

This is amazing! I had no idea you can use emojis in a URL, even though I'm a web developer! The other answer are great, but I found Unfurlr to work well. It allows you to see where something goes, without setting cookies in your browser, and without exposing you to a virus or drive-by-download as you would if you view it in your browser. It also shows you headers and scripts and contents if you need to safely inspect it more closely.

http://unfurlr.com/

unfurlr

Chloe
  • 5,776
  • 23
  • 71
  • 118
3

Just past the URL in the address bar of Firefox browser, it will show you the ASCII form automatically:

enter image description here

I'd expect other modern browsers to have similar behaviour, but I didn't actually test those.

Dmitry Grigoryev
  • 9,151
  • 4
  • 43
  • 77