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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

You can't download this image

246 点作者 calmingsolitude超过 3 年前

80 条评论

unfocused超过 3 年前
In Chrome, you can just do as the author says, right click and &quot;Save Image As&quot;.<p>Then just go to the folder where it is being downloaded, and copy&#x2F;paste the file &quot;lisa.jpeg.crdownload&quot; to &quot;lisa.jpeg.crdownload copy&quot;.<p>Rename to &quot;lisa.jpeg&quot; and cancel the download. You now have the image. What&#x27;s interesting is that you <i>ARE</i> actually downloading this image. It&#x27;s just that they don&#x27;t terminate the connection.
评论 #29364386 未加载
评论 #29365315 未加载
评论 #29375225 未加载
评论 #29365450 未加载
评论 #29363746 未加载
评论 #29365608 未加载
评论 #29364639 未加载
评论 #29370111 未加载
kuroguro超过 3 年前
The problem with leaving connections open is that there&#x27;s a limit on how many you can have on the server... I think the author has committed self-DoS :)<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Slowloris_(computer_security)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Slowloris_(computer_security)</a>
评论 #29359587 未加载
评论 #29359327 未加载
评论 #29365147 未加载
评论 #29359246 未加载
评论 #29364524 未加载
causi超过 3 年前
<i>When you usually try to download an image, your browser opens a connection to the server and sends a GET request asking for the image.</i><p>I&#x27;m not a web designer, but that seems rather ass-backwards. I&#x27;m already looking at the image, therefore the image is already residing either in my cache or in my RAM. Why it is downloaded a second time instead of just being copied onto my drive?
评论 #29359255 未加载
评论 #29359453 未加载
评论 #29359329 未加载
评论 #29365109 未加载
评论 #29359349 未加载
评论 #29359267 未加载
评论 #29359309 未加载
ravenstine超过 3 年前
There&#x27;s another way to achieve this in a more malicious way. Granted I haven&#x27;t tried it in years, but it was possible back in 2017 when I tested it.<p>The idea is to fake the image that&#x27;s being displayed in the IMG element by forcing it to show a `background-image` using `height: 0;` and `padding-top`.<p>In theory, you could make an IMG element show a photo of puppies and if the person chose to Right-click &gt; Save Image As then instead of the dog photo it could be something else.<p>For some reason I can&#x27;t Oauth into Codepen so for now I can&#x27;t recreate it publicly.
评论 #29365327 未加载
评论 #29365988 未加载
评论 #29363629 未加载
alias-dev超过 3 年前
This does create a self inflicted Slowloris attack on the server hosting the image, so this site is probably more susceptible to the hug of death than most
qwerty456127超过 3 年前
It always baffled me browsers even try to download an image (or a page or whatever) I asked them to save despite fact they have already downloaded and displayed it. What I would want them to do instead is just dump it from the memory.<p>And this sounds particularly important in case it&#x27;s about a web page which has been altered in runtime by JavaScript - I want the actual DOM dumped so I can then loaded it to display exactly what I see now.
评论 #29366539 未加载
dobladov超过 3 年前
curl --max-time 1 <a href="https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg" rel="nofollow">https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg</a> &gt; lisa.jpg
评论 #29359184 未加载
评论 #29359164 未加载
pbobak超过 3 年前
It downloaded on Safari on iOS. Long press on the image and tap Add to photos.
评论 #29359254 未加载
评论 #29359346 未加载
评论 #29359196 未加载
progman32超过 3 年前
This is a perfect (if maybe unintentional) example of how to get help from otherwise disinterested technical folk: Make an obviously technically-incorrect claim as fact, and watch as an entire army comes out of the woodwork giving you technical evaluations :)
评论 #29364047 未加载
评论 #29364298 未加载
评论 #29364022 未加载
评论 #29365671 未加载
barelysapient超过 3 年前
Downloaded on my iPhone with a single tap.
评论 #29363430 未加载
评论 #29364569 未加载
aerovistae超过 3 年前
I was about to &quot;Save as...&quot; when suddenly it struck me that this would be an incredible bait to spread a virus.
评论 #29364988 未加载
评论 #29364126 未加载
评论 #29365977 未加载
Hard_Space超过 3 年前
You really can&#x27;t - the HN hug of death has killed it!
评论 #29359071 未加载
评论 #29363143 未加载
sam1r超过 3 年前
You can&#x27;t download the code on github either.<p>Because github is currently down.
评论 #29364120 未加载
zamadatix超过 3 年前
In Chromium based browsers the quickest method I&#x27;ve found is &quot;right click -&gt; Inspect&quot; the image then click the sources tab in the dev tools window. From here you can drag or save the image shown without issue. My guess as to why this works is the sources view seems to pull from the loaded content of the page rather than fetch the content based on the lack of packets trying this with a packet capture running.
评论 #29365525 未加载
评论 #29365392 未加载
wsinks超过 3 年前
On iOS, long press &gt; add to photos<p>I now have a photo of the Mona Lisa in my camera roll.<p>I guess this is one of those things that wouldn’t be as edgy with the actual mechanism stated. :)
human超过 3 年前
No issue downloading it on iOS.
评论 #29363294 未加载
TheRealDunkirk超过 3 年前
Great! Just what we need these days: more tricks to screw around with the simple, straightforward implementation of the HTTP protocol! And just in time for Christmas.
sumthinprofound超过 3 年前
Firefox on Android long press save image no other action taken and it shows up in my device photo gallery.<p>(edit: clarity)
dvh超过 3 年前
If I wanted a non-downloadable image I would make it from 1px wide&#x2F;tall colored divs.
评论 #29359233 未加载
评论 #29359135 未加载
评论 #29359087 未加载
dibeneditto超过 3 年前
In Chrome, Right-Click on Image → Inspect → Right-Click on &lt;img src=&quot;lisa.jpg&quot; alt=&quot;Mona Lisa&quot;&gt; Tag → Capture node screenshot → Save
LeoPanthera超过 3 年前
Safari Mac, I dragged it out of the page and into a Finder window, and it saved.
评论 #29363059 未加载
评论 #29363259 未加载
1vuio0pswjnm7超过 3 年前
This sure seems like a weakness of the so-called &quot;modern&quot; web browser. Simpler, safer clients and proxies have no trouble dealing with a server that is (deliberately) too slow.<p>For example,<p>curl<p><pre><code> curl -y3 -4o 1.jpg https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg </code></pre> tnftp<p><pre><code> ftp -q3 -4o 1.jpg https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg </code></pre> links<p><pre><code> xy(){ tmux send &quot;$@&quot; ;}; xy &quot;links https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg&quot;; xy Enter; sleep 2; xy s; xy Enter; tmux capture -t3 -p|grep -q Overwrite &amp;&amp; xy o; sleep 1; xy a; xy q; xy y; </code></pre> haproxy<p><pre><code> frontend bs bind ipv4@127.0.0.1:80 use_backend bs if { base_reg youcantdownloadthisimage.online&#x2F;lisa.jpg } backend bs timeout server 420ms server bs ipv4@137.135.98.207:443 ssl force-tlsv13 ca-file &#x2F;etc&#x2F;ssl&#x2F;certs&#x2F;ca-certificates.crt verify required</code></pre>
评论 #29368172 未加载
Supposedly超过 3 年前
right click &gt; copy image &gt; paste somewhere<p>Works for me :) (I pasted in Telegram FYI)
earth2mars超过 3 年前
On Google Pixel there is a new feature where I can go to the recent app screen and it defects images to click on them to do Google lense or save images or share image. I was able to save the image of size 506kb with 841x1252 1.1MP pic.
nicebill8超过 3 年前
Drag and drop to Desktop on macOS works too.
zImPatrick超过 3 年前
copy the not finished download file in your downloads folder (for me lisa.jpg.crdownload) and name it lisa.jpg
评论 #29363540 未加载
synergyS超过 3 年前
Hm opened chrome console and saved it from sources there, took 30 secs :)
T0Bi超过 3 年前
It&#x27;s definitely hard to download an image that doesn&#x27;t load. :(
lavp超过 3 年前
The image saves immediately on an iPhone
soheil超过 3 年前
Works fine with <i>wget</i> it just keeps hanging but if you CTRL+C it and open the file it&#x27;ll look fine.<p>The trick is to have nginx never timeout and just indefinitely hang after the image is sent. The browser renders whatever image data it has received as soon as possible even though the request is never finished. However, when saving the image the browser never finalizes writing to the temp file so it thinks there is more data coming and never renames the temp file to the final file name.
busymom0超过 3 年前
My usual way of downloading images is to click and drag the image into my downloads folder on my Mac. Worked fine for me from Safari. Am I missing something?
efortis超过 3 年前
Load the website in Firefox with the Network Panel open, hit &quot;Escape&quot;, and right-click &quot;lisa.jpg&quot; -&gt; &quot;Save Image As&quot;
xdrosenheim超过 3 年前
Firefox mobile did hang when trying to download, but after pressing cancel the image was downloaded and viewable in my gallery app.
评论 #29359262 未加载
CyberShadow超过 3 年前
The site does not send a Content-Type header for the main web page, so I get a download dialog when trying to open it.
aeturnum超过 3 年前
Aside from all the folks who can download the image one way or another, I&#x27;m pretty disappointed that the technique here is simply using a web-server that doesn&#x27;t work like clients expect. People have broken links or incorrect redirects all the time, but we don&#x27;t generally make a fuss over them.
Wowfunhappy超过 3 年前
Other methods have been posted, but I wanted to share mine. Mac needed:<p>1. Secondary click image → &quot;Copy Image&quot;<p>2. Open Preview<p>3. File → New from Clipboard<p>4. Save image
评论 #29368058 未加载
shawnz超过 3 年前
An interesting workaround for Android 12 users: go to the app switcher and there will be a badge over the image which you can click to get &quot;copy&quot;, &quot;share&quot; and &quot;save&quot; buttons. Save it from that panel and it works just fine.
评论 #29365297 未加载
Brushfire超过 3 年前
Downloading the image worked just fine on an iPad. So not sure what they are talking about.
dillondoyle超过 3 年前
Another idea is canvas: <a href="https:&#x2F;&#x2F;jsfiddle.net&#x2F;dvg45pcz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsfiddle.net&#x2F;dvg45pcz&#x2F;</a><p>But I don&#x27;t know how to get it to not appear in network sources.<p>Or wasm but I don&#x27;t know how to write that.
评论 #29364175 未加载
评论 #29364197 未加载
tschesnok超过 3 年前
No one seems to mention that Chrome keeps spinning on the HTML load as well and eventually kills the image. This means the webpage itself is broken and fails to work. Not just the download. Soo.. this just does not work for anything..
jasmes超过 3 年前
<i>Looks at image.</i><p><i>Looks at prntscrn key.</i><p>This is basically a carefully targeted reverse slow lorris and involves right clicking an image why do I fear that use case and that level of madcap solution will all lead back to NFT bros...
countmora超过 3 年前
I chuckled about this. However you can drag and drop it to your Desktop on macOS.
Tenoke超过 3 年前
This one is pretty easy but a friend recently showed me one (gallery of some sort) I couldn&#x27;t figure out quickly which was downloading chunks in nonstandard ways and piecing them together with uglified js.
thih9超过 3 年前
Somehow right clicking + saving worked fine on Safari (desktop). I tried it a couple of times and it worked in all cases; sometimes it took a second, sometimes more. Perhaps the server dropped the connection?
olliej超过 3 年前
On webkit based browsers at least you can just drag the image out, it doesn’t bother trying to redownload it just reconstructs the image file from memory, this also applies to copy&#x2F;paste on ios
sys_64738超过 3 年前
There&#x27;s a multitude of ways to workaround this hack. You can easily grab the screen area via the OS if need be. Seems pointless to try to restrict access if it&#x27;s viewable in a browser.
ReleaseCandidat超过 3 年前
Koan of the day: Can you download something that doesn&#x27;t load?
veaxvoid超过 3 年前
Just made a screenshot
mark_and_sweep超过 3 年前
I would have expected this to do something different, like rendering the image via WebGL (so it looks like an &lt;img&gt;, but isn&#x27;t easily downloadable).
sneedenheimer超过 3 年前
<p><pre><code> $ wget https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg </code></pre> wait for like 5 seconds for it to finish downloading and then hit ctrl-c
chrisbrandow超过 3 年前
I right clicked (on a Mac), clicked &quot;copy image&quot; and I pasted that into preview just fine.<p>Is there some reason why that&#x27;s an uninteresting exception?
nfgrep超过 3 年前
Using Safari on iOS. I was able to save it instantly…
评论 #29366338 未加载
brundolf超过 3 年前
It worked fine on iOS (confirmed in my photo library)
webpdfpro超过 3 年前
<a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;60ArLwg" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;60ArLwg</a> – here you go!
rad_gruchalski超过 3 年前
On iOS: tap hold the image, save to photos. Done.
RolloTom超过 3 年前
wget and aria2c both works. I get a jpg image 54,8 KiB, SHA256 sum 204788602166C017B8FEF5D63EDFD814DC9865233C410BCDAD713F78DAE5AF18
hoseja超过 3 年前
I thought it was going to be some obfuscated JS or maybe the image reconstructed from a grid of subimages or some such thing.
ChrisArchitect超过 3 年前
what, sure if initiating the save as.. triggers this endless download thing<p>but the initial load is the image and opening up dev tools and finding it in the sources&#x2F;cache and saving it from there, chrome knows it&#x27;s 56.1kb or whatever and just saves it out of cache, done.<p>Interesting but what was the point they&#x27;re trying to make?
growt超过 3 年前
Went to the download folder, renamed lisa.jpg.crdownload to lisa.jpg. Cancelled the download in the browser.
hollander超过 3 年前
Rightclick and select &quot;copy image&quot;. Why would you want this if you can copy the image anyway?
syamkumar超过 3 年前
I just right-clicked the image, selected &#x27;copy image&#x27;, opened Gimp and pasted as new image.
fumblebee超过 3 年前
Hm, on Safari mobile, hold down on image and “Add to Photos”, downloads fast and fine. How come?
can16358p超过 3 年前
I just simply long tapped on the image and tapped save to photos on my iPhone and it was saved.
meow_mix超过 3 年前
How to download this image:<p>1. Open Inspect (right click and hit &quot;inspect&quot;)<p>2. Click the &quot;Network&quot; tab<p>3. Refresh the page (while clearing the cache Command+Shift+R)<p>4. Right click on &quot;lisa.jpg&quot; in the list view under the &quot;Network&quot; tab<p>5. Click &quot;Open in new tab&quot;<p>6. Right click the image on the new tab<p>7. Click &quot;Save image as&quot;<p>Man I can&#x27;t believe these clowns (or myself for typing all this out--don&#x27;t know who is worse)
评论 #29363534 未加载
评论 #29363631 未加载
评论 #29363754 未加载
grawprog超过 3 年前
I had zero issues downloading the image with brave. Saves normally like any other picture.
marcelotournier超过 3 年前
iOS Safari saved the image in my photos, as any regular picture that I do a long tap on.
hereme888超过 3 年前
I was using the Tor browser from my Android and had no problem downloading the image.
SilentM68超过 3 年前
I just right-clicked, copied the image and pasted into an image editor in windows.
worldofmatthew超过 3 年前
Copy and Pastes works fine.
atum47超过 3 年前
if I open the image on a new tab, after 1.5 minutes the &quot;content download&quot; was ready. Also, had no problem right clicking it and hitting copy image.
0xhh超过 3 年前
I guess this is very similar to res.end() in nodejs servers
boublepop超过 3 年前
Yes I could. No issues. Save to photos on iPhone.
quickthrower2超过 3 年前
You can on iOS safari. No hacks&#x2F;workarounds
ladino超过 3 年前
iPhone Safari - Instant Download, no problem!
haunter超过 3 年前
iPhone &gt; long press &gt; Add to photos<p>What am I missing?
评论 #29361363 未加载
neximo64超过 3 年前
If you wait long enough it downloads.
html5web超过 3 年前
Downloaded on iPhone
zeeshanejaz超过 3 年前
`prt sc` anyone?
评论 #29360318 未加载
peanut_worm超过 3 年前
works fine on ios
huhtenberg超过 3 年前
<a href="https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg" rel="nofollow">https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg</a>... and?
评论 #29363745 未加载