TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Yet another url shortner xiv.in, comments please

4 pointsby critiqover 10 years ago

4 comments

krappover 10 years ago
It shortens an <a href="https://" rel="nofollow">https:&#x2F;&#x2F;</a> link to <a href="http://" rel="nofollow">http:&#x2F;&#x2F;</a>, and it also shortens invalid links.<p>Trying to add a js alert I noticed the preview allows arbitrary html to display, but the end result was useless - <a href="http://xiv.in/ZW4NL" rel="nofollow">http:&#x2F;&#x2F;xiv.in&#x2F;ZW4NL</a> and trying different schemes caused http to be prepended to the url by default.<p>I would suggest trying to validate the urls, and at least attempting to connect and get a response once before hashing them. This will at least result in less junk in your database (or wherever you&#x27;re storing them) if you dump invalid links altogether.
评论 #8296977 未加载
smt88over 10 years ago
Why would I use this? (Not saying I wouldn&#x27;t, just want to know why you built it and why I should use it instead of an existing service.)<p>The benefit of Bitly is that users recognize the link. It doesn&#x27;t make them feel like they&#x27;re about to get a virus.<p>Furthermore, Bitly has lots of nice features and actively fights malicious links. So the truth is, users actually <i>can</i> trust Bitly links a bit more than a service that just started up.
评论 #8296962 未加载
rakooover 10 years ago
Make the shortened link clickable, so I can right-click -&gt; copy link and then paste it wherever I need.
评论 #8296930 未加载
conradkover 10 years ago
curl -I <a href="http://xiv.in/GYBX3" rel="nofollow">http:&#x2F;&#x2F;xiv.in&#x2F;GYBX3</a><p>...<p>Location: <a href="http://s.xiv.in/GYBX3" rel="nofollow">http:&#x2F;&#x2F;s.xiv.in&#x2F;GYBX3</a><p>...<p>Why one useless redirection?