TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

4 点作者 critiq超过 10 年前

4 条评论

krapp超过 10 年前
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 未加载
smt88超过 10 年前
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 未加载
rakoo超过 10 年前
Make the shortened link clickable, so I can right-click -&gt; copy link and then paste it wherever I need.
评论 #8296930 未加载
conradk超过 10 年前
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?