 |

George_h
User
Jul 6, 2002, 12:19 AM
Post #1 of 8
(5223 views)
Shortcut
|
|
Cool bit of code
|
Can't Post
|
|
I have problems with people coming along and cutting my graphics and pasting them into message boards... I get a bit p***ed off at my bandwidth usage, as the images are served off my server I hunted out this bit of code that works in IE and Netscape that stops the right click. In IE it also stops anyone highlighting the text and robbing that... Also stops dragging... I know there are ways round it but your average 'robber' will not bother I just thought that someone might like it <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"> Kind Regards George
|
|
|  |
 |

terrill
User
Aug 29, 2002, 3:05 PM
Post #2 of 8
(5067 views)
Shortcut
|
|
Re: [Tipking] Cool bit of code
[In reply to]
|
Can't Post
|
|
If you'd like to get a little fancier, try:
<html><head> </head> <script language="JavaScript"> <!-- // No rightclick script v.2.5 // (c) 1998 barts1000 // barts1000@aol.com // Don't delete this header! var message="Sorry, that function is disabled.\n\n" + "All information and pictures posted to\n" + "this Web Site Are Copyright by me! Really!\n\n" + "I mean it. Mine... You can't have it. Go Away!!!"; // Don't edit below! function click(e) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; // --> </script> <body> hi </body></html> Of course, Opera walks though it like a hot knife through warm butter... but like you said, ain't nothing perfect! Enjoy!
|
|
|  |
 |

fraser_itools
Staff

Aug 29, 2002, 3:25 PM
Post #3 of 8
(5065 views)
Shortcut
|
|
Re: [Tipking] Cool bit of code
[In reply to]
|
Can't Post
|
|
Obviously there are some ways around this. Turn off your Javascript, view the sourcecode, etc. I've seen some sites that somehow replace stolen graphics with a really low resolution advertisement. I know tripod does it. As I'm the least technical person here, I have no idea how they're doing it, but I'm guessing it's somehow done at the server level. Do a search on Google Images for the term "fish" but limited only to tripod.com. Click on any image to get a preview and you'll see that the image in the top frame has been replaced with something much lower resolution. Fraser Cain - Product Manager interactivetools.com, inc. Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455 Software for your Website - http://www.interactivetools.com/
(This post was edited by Fraser on Aug 29, 2002, 3:35 PM)
|
|
|  |
 |

MalaK_3araby
User
Aug 29, 2002, 5:15 PM
Post #4 of 8
(5043 views)
Shortcut
|
Hiya there Stop Bandwidth Theft using .htaccess: http://www.thudfactor.com/writing.php?show=18 or Apache's mod_rewrite: http://www.lucidimages.net/phptricks.html -------------- Sure you can spell it, but do you get it?
|
|
|  |
 |

terrill
User
Aug 30, 2002, 10:42 AM
Post #5 of 8
(5035 views)
Shortcut
|
Fraser, Did the Goooooogle search you suggested. In the bottom frame, I right-clicked and save the full-sized image: Looks great in Photo Impact. In the thumbnail image, I right-clicked and did a "Save TARGET As..." with the same results: great-looking pic! Hmmm... Used IE 5.5 for the browser, just in case Opera (my normal-use browser) did something, uh, fishy with the images!
(This post was edited by terrill on Aug 30, 2002, 10:53 AM)
|
|
|  |
 |

fraser_itools
Staff

Aug 30, 2002, 10:48 AM
Post #6 of 8
(5033 views)
Shortcut
|
|
Re: [terrill] Cool bit of code
[In reply to]
|
Can't Post
|
|
Don't save the image yet, actually click it to go to the next page where you've got the big image in the top frame, and then the webpage that had the image in the bottom frame. In my browser, I see this stretched low-rez image for Tripod in the top frame, and then the proper image embedded into the web page in the bottom frame. It's that top frame that makes me think that Tripod is doing something to restrict the amount of bandwidth being used when their images are displayed out of context on other sites. Fraser Cain - Product Manager interactivetools.com, inc. Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455 Software for your Website - http://www.interactivetools.com/
|
|
|  |
 |

terrill
User
Aug 30, 2002, 11:00 AM
Post #7 of 8
(5032 views)
Shortcut
|
Hmmm... looking over some of the Apache mod_rewrite and .htaccess stuff Malak_ provided us, it kind-of looks like it could be done using those described methods... by checking the HTTP_REFERER (Thanks, Malak!). Yet, again... isn't any method fool-proof. As they say: "Make something fool-proof, and only fool's will use it!" The best ya can do is try. Yep... would like to know what Tripod is doing for real, though. Knowledge is always a handy thing to keep around. Without it, ya just can't dig those DEEP holes that are SO much fun to work your way out of!-)
|
|
|  |
 |

MalaK_3araby
User
Aug 30, 2002, 12:37 PM
Post #8 of 8
(5025 views)
Shortcut
|
|
Re: [terrill] Cool bit of code
[In reply to]
|
Can't Post
|
|
hi guys. terril, ur most welcome. You will love the following page .. and you can specify a redirect url (think low-res logo for ur site!). I have not tested this myself, but it uses Apache's mod_rewrite .. nough talking on my part and go see for urself buddy: http://www.thepcmanwebsite.com/hot_linking_stopper.shtml -------------- Sure you can spell it, but do you get it?
|
|
|  |
|