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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is Signal.org using WhatsApp code?

1 点作者 lbj将近 3 年前
Earlier today I needed to get into an Instagram account. The owner went to the login screen and clicked the &quot;Get link to login&quot; button and promptly received an email with the special link.<p>This link was copy&#x2F;pasted into a Signal chat with me, and instantly another email arrived &quot;New login to your account: WhatsApp Spider &lt;Nearby City&gt;&quot;.<p>Nearby to the sender the is. Is the prefetch showing up as WhatsApp? If so, why?

1 comment

jepler将近 3 年前
Interesting. I entered a URL into Signal in &#x27;note to self&#x27; (didn&#x27;t send) and in my access log I saw<p><pre><code> 162.210.7.8 - - [20&#x2F;Jul&#x2F;2022:16:40:18 -0500] &quot;GET &#x2F; HTTP&#x2F;1.1&quot; 200 15336 &quot;-&quot; &quot;WhatsApp&#x2F;2&quot; </code></pre> of course, anyone can send any user agent they like. Maybe signal is doing this for better compatibility. I did a quick search in the open source of signal-android and found this: <a href="https:&#x2F;&#x2F;github.com&#x2F;signalapp&#x2F;Signal-Android&#x2F;blob&#x2F;e22ddb8f96f8801f0abe622b5261abc6cb396d94&#x2F;app&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;thoughtcrime&#x2F;securesms&#x2F;linkpreview&#x2F;LinkPreviewRepository.java#L82" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;signalapp&#x2F;Signal-Android&#x2F;blob&#x2F;e22ddb8f96f...</a><p><pre><code> public LinkPreviewRepository() { this.client = new OkHttpClient.Builder() .cache(null) .addInterceptor(new UserAgentInterceptor(&quot;WhatsApp&#x2F;2&quot;)) .build(); } </code></pre> so yes the client app generates a preview of an entered URL by making requests with the user agent WhatsApp&#x2F;2.
评论 #32176230 未加载