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.

You can't download this image

246 pointsby calmingsolitudeover 3 years ago

80 comments

unfocusedover 3 years ago
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 未加载
kuroguroover 3 years ago
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 未加载
causiover 3 years ago
<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 未加载
ravenstineover 3 years ago
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-devover 3 years ago
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
qwerty456127over 3 years ago
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 未加载
dobladovover 3 years ago
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 未加载
pbobakover 3 years ago
It downloaded on Safari on iOS. Long press on the image and tap Add to photos.
评论 #29359254 未加载
评论 #29359346 未加载
评论 #29359196 未加载
progman32over 3 years ago
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 未加载
barelysapientover 3 years ago
Downloaded on my iPhone with a single tap.
评论 #29363430 未加载
评论 #29364569 未加载
aerovistaeover 3 years ago
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_Spaceover 3 years ago
You really can&#x27;t - the HN hug of death has killed it!
评论 #29359071 未加载
评论 #29363143 未加载
sam1rover 3 years ago
You can&#x27;t download the code on github either.<p>Because github is currently down.
评论 #29364120 未加载
zamadatixover 3 years ago
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 未加载
wsinksover 3 years ago
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. :)
humanover 3 years ago
No issue downloading it on iOS.
评论 #29363294 未加载
TheRealDunkirkover 3 years ago
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.
sumthinprofoundover 3 years ago
Firefox on Android long press save image no other action taken and it shows up in my device photo gallery.<p>(edit: clarity)
dvhover 3 years ago
If I wanted a non-downloadable image I would make it from 1px wide&#x2F;tall colored divs.
评论 #29359233 未加载
评论 #29359135 未加载
评论 #29359087 未加载
dibenedittoover 3 years ago
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
LeoPantheraover 3 years ago
Safari Mac, I dragged it out of the page and into a Finder window, and it saved.
评论 #29363059 未加载
评论 #29363259 未加载
1vuio0pswjnm7over 3 years ago
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 未加载
Supposedlyover 3 years ago
right click &gt; copy image &gt; paste somewhere<p>Works for me :) (I pasted in Telegram FYI)
earth2marsover 3 years ago
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.
nicebill8over 3 years ago
Drag and drop to Desktop on macOS works too.
zImPatrickover 3 years ago
copy the not finished download file in your downloads folder (for me lisa.jpg.crdownload) and name it lisa.jpg
评论 #29363540 未加载
synergySover 3 years ago
Hm opened chrome console and saved it from sources there, took 30 secs :)
T0Biover 3 years ago
It&#x27;s definitely hard to download an image that doesn&#x27;t load. :(
lavpover 3 years ago
The image saves immediately on an iPhone
soheilover 3 years ago
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.
busymom0over 3 years ago
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?
efortisover 3 years ago
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;
xdrosenheimover 3 years ago
Firefox mobile did hang when trying to download, but after pressing cancel the image was downloaded and viewable in my gallery app.
评论 #29359262 未加载
CyberShadowover 3 years ago
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.
aeturnumover 3 years ago
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.
Wowfunhappyover 3 years ago
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 未加载
shawnzover 3 years ago
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 未加载
Brushfireover 3 years ago
Downloading the image worked just fine on an iPad. So not sure what they are talking about.
dillondoyleover 3 years ago
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 未加载
tschesnokover 3 years ago
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..
jasmesover 3 years ago
<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...
countmoraover 3 years ago
I chuckled about this. However you can drag and drop it to your Desktop on macOS.
Tenokeover 3 years ago
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.
thih9over 3 years ago
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?
olliejover 3 years ago
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_64738over 3 years ago
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.
ReleaseCandidatover 3 years ago
Koan of the day: Can you download something that doesn&#x27;t load?
veaxvoidover 3 years ago
Just made a screenshot
mark_and_sweepover 3 years ago
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).
sneedenheimerover 3 years ago
<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
chrisbrandowover 3 years ago
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?
nfgrepover 3 years ago
Using Safari on iOS. I was able to save it instantly…
评论 #29366338 未加载
brundolfover 3 years ago
It worked fine on iOS (confirmed in my photo library)
webpdfproover 3 years ago
<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_gruchalskiover 3 years ago
On iOS: tap hold the image, save to photos. Done.
RolloTomover 3 years ago
wget and aria2c both works. I get a jpg image 54,8 KiB, SHA256 sum 204788602166C017B8FEF5D63EDFD814DC9865233C410BCDAD713F78DAE5AF18
hosejaover 3 years ago
I thought it was going to be some obfuscated JS or maybe the image reconstructed from a grid of subimages or some such thing.
ChrisArchitectover 3 years ago
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?
growtover 3 years ago
Went to the download folder, renamed lisa.jpg.crdownload to lisa.jpg. Cancelled the download in the browser.
hollanderover 3 years ago
Rightclick and select &quot;copy image&quot;. Why would you want this if you can copy the image anyway?
syamkumarover 3 years ago
I just right-clicked the image, selected &#x27;copy image&#x27;, opened Gimp and pasted as new image.
fumblebeeover 3 years ago
Hm, on Safari mobile, hold down on image and “Add to Photos”, downloads fast and fine. How come?
can16358pover 3 years ago
I just simply long tapped on the image and tapped save to photos on my iPhone and it was saved.
meow_mixover 3 years ago
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 未加载
grawprogover 3 years ago
I had zero issues downloading the image with brave. Saves normally like any other picture.
marcelotournierover 3 years ago
iOS Safari saved the image in my photos, as any regular picture that I do a long tap on.
hereme888over 3 years ago
I was using the Tor browser from my Android and had no problem downloading the image.
SilentM68over 3 years ago
I just right-clicked, copied the image and pasted into an image editor in windows.
worldofmatthewover 3 years ago
Copy and Pastes works fine.
atum47over 3 years ago
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.
0xhhover 3 years ago
I guess this is very similar to res.end() in nodejs servers
boublepopover 3 years ago
Yes I could. No issues. Save to photos on iPhone.
quickthrower2over 3 years ago
You can on iOS safari. No hacks&#x2F;workarounds
ladinoover 3 years ago
iPhone Safari - Instant Download, no problem!
haunterover 3 years ago
iPhone &gt; long press &gt; Add to photos<p>What am I missing?
评论 #29361363 未加载
neximo64over 3 years ago
If you wait long enough it downloads.
html5webover 3 years ago
Downloaded on iPhone
zeeshanejazover 3 years ago
`prt sc` anyone?
评论 #29360318 未加载
peanut_wormover 3 years ago
works fine on ios
huhtenbergover 3 years ago
<a href="https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg" rel="nofollow">https:&#x2F;&#x2F;youcantdownloadthisimage.online&#x2F;lisa.jpg</a>... and?
评论 #29363745 未加载