4 ms·
1x1 pixel GIFs are still in use on places like Amazon where the 1x1 GIF image is overlayed on top of another (larger) image. It's to stop people right-clicking
by DerekBickerton 5y ago
1x1 pixel GIFs are still in use on places like Amazon where the 1x1 GIF image is overlayed on top of another (larger) image. It's to stop people right-clicking and saving the larger image to their device (because copyright). Anyways I can just press F12 and 'steal' the image from devtools, so it's not hard to overcome.
- tobr 5y ago> places like Amazon And places like this site right here, where it provides indentation for comments among other things! Search the source for `s.gif` - https://news.ycombinator.com/s.gif https://news.ycombinator.com/s.gif
- ModernMech 5y agoSome sites that are more savvy now prevent you from getting into dev tools altogether. That and Google looking to make the whole web canvas is a disturbing trend.
- ccrabb 5y agoI've seen websites hijack the keyboard shortcut and prevent right clicking from opening the context menu but none that actually prevented dev tools from being opened
- robbyking 5y agoI recently came across an image I wasn't able to download using dev tools and was shocked. I wish I had had the time to figure it out.
- gear54rus 5y agoLink the page please?:)
- Frost1x 5y agoIf it's visible, it's capturable, it's simply a matter of how obfuscated it is and how much effort you want to spend capturing it. In highly dynamic web apps these days, it could be simple as a right click or as complex as figuring out their rendering system, source data stream, generated key handshake to verify it's the script accessing the data and not a person, and so on. I see this sort of trash a lot more than I care to.
- oblio 5y agoWell, you can just PrntScrn it as a last resort, if it's not a background image :-)
- ripdog 5y agoI once broke the "DRM" of a site which displayed images by downloading them obfuscated and using a big blob of JS to unfsck them and display them on a canvas. Grabbing the image should be easy, no? Just use `.toDataURL()`, right? Well, this site deleted all the methods on the canvas object which could be used to grab the image data, and then `.freeze()` (or maybe it was `.seal()`, this was a while ago) to prevent the method being added back in. In the end I said 'fuck it' and made a patched firefox build in a VM with freeze and/or seal disabled completely, then a small jetpack addon (remember them?) to unfsck the canvas element and grab them images.
- piperswe 5y agoYou probably could've used `HTMLCanvasElement.prototype.toDataURL.call` on the canvas element
- ripdog 5y agoHah, I knew a JS wizard would come up with an easier solution after I posted that. Perhaps I'll have to re-sub to that site to see if they've changed their DRM scheme...
- efreak 5y agoThat's easier than my solution. I've got a user script that backs up some methods that runs before the page loads, and a corresponding bookmarklet to restore them.
- nunez 5y agoI believe that tracking pixels (1x1) are still very popular for mining browsing activity
- fault1 5y agoYes. Facebook literally calls it the Facebook Pixel for this reason.