![]() |
![]() |
#1 (permalink) |
High Honorary Junkie
Location: Tri-state.
|
Clever Amazon...how do they do it?
Hi everyone,
Visit http://www.amazon.com/gp/reader/1582...=1#reader-page Now, you'll notice that an image appears, but there is no link for it in the source. Instead, it's a transparent pixel stretched to cover the area of the image. I'm baffled at how they do that. Indeed, they've even replaced right-clicking on the image with a copyright notice. I can't even print it to a PDF (and don't have a printer...can one print that image at all??) Any hints as to how they do it? |
![]() |
![]() |
#2 (permalink) |
Crazy
|
Pretty snazzy. You can find it out if you view the source though. (be careful, they added a tonne of white space at the top so it looks like you can't view the source either, you gotta scroll down). You'll eventually see this:
<!-- var copyright="Please respect the copyright of this material."; function noRightClick(e) { if (document.layers || document.getElementById && !document.all) { if (e.which == 2 || e.which == 3) { document.captureEvents(Event.MOUSEDOWN); // alert(copyright); return false; } } else if (document.all && !document.getElementById) { if (event.button == 2) { // alert(copyright); return false; } } } function noContextMenu(e) { return false; } function noClip(e) { if(window.clipboardData) { window.clipboardData.setData("Text", ""); } } document.onblur = noClip; document.onmousedown = noRightClick; document.oncontextmenu = noContextMenu; // --> They just used some javascript. Last edited by scott_p_1; 11-25-2004 at 12:12 PM.. Reason: spelling mistake :P |
![]() |
![]() |
#3 (permalink) |
Crazy
|
Oh yeah, if you're looking to get the actual images, you might be able to do it with disabling javascript (it might screw up some other stuff there though, not sure, didn't check). Or just search through the source for the image location and try to get it from there.
|
![]() |
![]() |
#4 (permalink) |
beauty in the breakdown
Location: Chapel Hill, NC
|
The right click disabling is a trick used frequently--and one pretty easy to get around. Like someone said, just disable javascript, or go into the source to find the image. The single pixel image stretch to cover it is pretty clever though, but theres probably a way around it if you look hard enough into the code. Its gotta show it up on your screen, and if it can do that, theres certainly a way to get it off onto your hard drive--but by so much obfuscation, theyve made it too difficult to rip off a serious portions of a book, which is what they were trying to prevent in the first place.
__________________
"Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." --Plato |
![]() |
![]() |
#5 (permalink) |
Crazy
Location: here and there
|
link Very sneaky. they use css to set an image as the background for a table cell and call it without an image extension. I usually advise people not to bother with trying to stop downloading images, just water mark anything you dont want stolen. Its funny, with firefox you cant disable right clicking if people dont want you to. You can with ie, but with ie, if you hover over the image it puts up a little toolbar to let you download it. thats about as good a job as i have seen though.
__________________
# chmod 111 /bin/Laden |
![]() |
![]() |
#6 (permalink) |
High Honorary Junkie
Location: Tri-state.
|
wow, you guys all ROCK! thanks very much.
i was impressed with amazon for that sneakiness, and even more impressed that you guys were able to figure it out so quickly. i spent 20 minutes easy trying to figure that one out on my own (but, after seeing theFez's solution, realize I was looking in all the wrong places ;-) |
![]() |
![]() |
#10 (permalink) | |
Tilted
Location: Boston
|
Quote:
|
|
![]() |
![]() |
#12 (permalink) |
Addict
Location: M[ass]achusetts
|
i use proxomitron, it's a software proxy, lets you filter out whatever you want, you can do some really nice stuff with it if you know how to use regex efficiently. they have a bunch of anti-no-right-click scripts that you can find...
http://proxomitron.info
__________________
In the end we are but wisps |
![]() |
Tags |
amazonhow, clever |
|
|