raevin Posted July 20, 2004 Posted July 20, 2004 Hi I'm new here and here is my first wonderful question In the past I have seen a script for protecting graphics and preventing hotlinking of graphics. It gave the hotlinker a different graphic which usuall was made by the webmaster/mistress and in a way scolded the person for using an image w/o permission. Does anyone know of this script?? While I'm here, I would like a Source hider, right-click disable and that great Windows picture stealer disabled (I mean stop that save tool bar from popping up when you hover on an image). Thanks?? Can you see that i may be here or around often???? Raevin www.raevin.us Quote
TCH-Rob Posted July 20, 2004 Posted July 20, 2004 Raevin, I am not sure what your host offers but if you are asking for a script I will assume you dont have cPanel to add hotlink protection. To keep them from stealing images put this in your .htaccess; >RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?****/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.****/other.gif [R,L] Replace **** with your own, plus other.gif. For the right click try this in your body; ><script language=JavaScript> <!-- //Disable right click var message="Right-Click Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> I am not sure about the source or windows imaging ones though. Quote
TCH-Don Posted July 20, 2004 Posted July 20, 2004 Welcome to the Family Raevin and your new home! You can enable hotlink protection in your cpanel and there is info ther on using an image to send to the hot linker. I think the image toolbar in IE is what you are referring to. You can add the following metatag to the head part of your pages to disable the save icon when you pass over the image. How ever that will not stop most visitors. This is a complex problem and the more sophisticated the visitor the quicker they cam save your images. We really are like family here. So if you need anything, just ask your new family! Quote
LisaJill Posted July 20, 2004 Posted July 20, 2004 Before you disable right click please consider a few things. * It will NOT stop people from viewing your source or downloading your images. There are a thousand ways around this. * It WILL stop people from using their mouse in your page for proper navigation, such as back and forward or reloading, or opening links in a new window or tab should they choose to. Stopping hotlinking is a good thing for your bandwidth and to stop bandwidth theft, but disabling right clicking or the IE save toolbar will not protect anything. =) Quote
TCH-Rob Posted July 20, 2004 Posted July 20, 2004 Stopping hotlinking is a good thing for your bandwidth and to stop bandwidth theft, but disabling right clicking or the IE save toolbar will not protect anything. =) I disagree, it may just protect your site from getting any visitors. Although I did provide the option I do not believe it will stop anyone that really wants your images. Quote
LisaJill Posted July 20, 2004 Posted July 20, 2004 touché, Rob. =) they are important points to consider, though, and I agree with Rob as far as losing visitors. =) Quote
raevin Posted July 20, 2004 Author Posted July 20, 2004 Wow....big responce here!! Ok, I found the hotlink thing in my cpanel. Will test it out later. Thank you for all those yummy codes How will right-click disable make me LOSE visitors?? Also, I know about looking at the source code, that's how I learned HTML, anyone have a hider?? I know some people when I try to access their source code, it gives me a message like you are not authorized or are you trying to steal. Thanks....family Raevin Quote
TCH-Bruce Posted July 20, 2004 Posted July 20, 2004 Welcome to the family Raevin! If someone visits your site and you feed them an image, the image is now on their computer. It's in their temporary internet files folder and can easily be retrieved from there. The only sure way to make sure someone doesn't steal your images is to not put them up for anyone to see. Sad but true. Quote
LisaJill Posted July 20, 2004 Posted July 20, 2004 raevin, by disabling right click you stop people from being able to use normal navigational functions. This can be incredibly frustrating for the end-user who has no desire at all to see a thing "under the hood" but likes to use their mouse to get around. They may then decide not to come back. =) The code that you are talking about to hide your html code can also be easily gotten around. Indeed, the better of those scripts have instructions littered around the web (often the higher search results than the script themselves) on how to break them. The end result here is that you end up frustrating visitors while not stopping any of the 'theft' that you think you are - it's a false sense of security, which is why I try to recommend against people doing this. =) Quote
raevin Posted July 20, 2004 Author Posted July 20, 2004 Thanks Lisa, now I know. Guess I just won't put up my graphic gallery. Positive to that: I save space :heart Raevin Quote
LisaJill Posted July 20, 2004 Posted July 20, 2004 raevin, I still think you should put up your graphic gallery if you want to. Just be aware that once its on the 'net, it's available for the taking. After all - someone could always take a screenshot and crop it out. There's nothing you could do about that. That doesn't stop the majority of people from placing their stuff online, nor should it, imo. =) Good luck! Quote
Samrc Posted July 21, 2004 Posted July 21, 2004 Right click scripts can be VERY annoying to people like myself that live by my right click button menu. With that in mind, Dynamic Drive offers a very nice disable right click that only affects the right click on an image and DOES NOT interfer with other menu options. It warns the visitor to not take images, yet still allows full use of the menu items. I use the script to discourage the casual image taker, like a speed bump to slow them down. Find the script here: www.dynamicdrive.com/dynamicindex9/noright2.htm For those who do not want to use a right click script, you can actully SLICE your image into pieces so that if someone DOES right click to grab the image, they only get part of the image. LOL The second picture on this page (sailboat) is sliced into 20 pieces and here's a tutorial: www.psphelp.com/slice.html You can not stop people from taking a screen print of your image. But you can discourage the taking of your images! Make the image less tempting, I strongly suggest you use watermarking to identify your images (an overlay graphic or text) to make the image something that someone else would not want to take. It does not need to greatly distort the image, just make it obvious where it comes from. These tutorials are for Paint Shop Pro, but the technique can be done with any photo program that works with layers. - embossed (raised mark): www.jacindaswebdesign.com/PSP/psp8/Watermarking/ and more good examples: psp7tutorials.homestead.com/Watermarking.html - flat text: www.hypergurl.com/watermark.html There is also a way to DIGITALLY watermark your images, but usually this is a paid service that allows you to register images. A digital watermark is placed into the code of the image and can not be removed. If your image shows up somewhere else on the web, it is easy to prove the image is YOURS. As pointed out earlier.... expect if your image is placed on the web, that it will be taken. Many people do not believe that is it wrong to take other people's text let alone the graphics. Knowing all this, I still post images! So should you! Welcome to the family! (To use the links, just type in HTTP:// in front of the URLs noted) -Samantha Quote
Virtual Imager Posted July 21, 2004 Posted July 21, 2004 I just added the script from Dynamic Drive to disable right click on images only. IT DOESN'T WORK! When you right click the image you get the message that right click is disabled on images, but when you close that message box either by clicking OK or by the X, you get all the right-click options including Save Image, View Image, Copy image, etc for wherever your cursor is when you click the OK or the X. At least in Netscape 7.0. It seems to work fine in IE. Wondering if some of you could check out my gallery pages in your browsers and let me know what's up? Note: I only added the script to the actual gallery pages, not the slideshows. Also, just as an aside... if you change or customize any of the html in the script, Dynamic Drive attempts to put a virus on your machine. Norton caught it, thankfully. Here's a link to my Virtual New York gallery page. Please let me know. I'm considering removing the script altogether... Thanks, VI Quote
GroovyFish Posted July 21, 2004 Posted July 21, 2004 Ok, here is what I found: Firefox .9.1 It worked on some of the images, but on others it does what you said, still shows the menu to save, copy, etc. images. Not sure what the difference is. UPDATE: it seems to depend on where you right click on the image. If I click in one place I get the "images" menu, if I click someplace else on the same image, I get the other menu. IE 6 - I only received the message that right click is disabled, no menu showed up at all. Quote
TCH-Don Posted July 21, 2004 Posted July 21, 2004 LOL in firefox I see an alert box "right click dissabled" then I see the normal right click menu with image save Quote
Virtual Imager Posted July 21, 2004 Posted July 21, 2004 UPDATE: it seems to depend on where you right click on the image. If I click in one place I get the "images" menu, if I click someplace else on the same image, I get the other menu. I think it depends on where on the page that alert box pops up and what's under it when you click the "OK" because sometimes i get the menu that comes up when you right click an image and sometimes I get the one that comes up when you right click elsewhere on a page (the one that allows you to go Back, reload, etc. I guess it's still good for IE (most of the world is still using it) and better than a total right click disable which I agree is VERY annoying! Quote
Virtual Imager Posted July 21, 2004 Posted July 21, 2004 I think disabling the right click for images only is a good idea.... I'm hoping some of you gurus will rewrite this script so it works properly (not just in IE) and doesn't contain any imbedded viruses, and then post it here. That would be awesome! VI Quote
LisaJill Posted July 21, 2004 Posted July 21, 2004 *grins* On my mac I just normal click and drag to my desktop, no need to right click at all..... *whistles* Quote
Samrc Posted July 21, 2004 Posted July 21, 2004 As I said in my post....I use that script ONLY as a speed bump! No right click script will PROTECT your images! That script is not perfect AND as I mentioned, it certainly does NOT stop folks from capturing your image in a wide variety of ways. As to modifying the script.... It does NOT contact Dynamic Drive so if you alter it (I changed the phrase in the warning), Dynamic Drive does NOT try to place a virus on your machine! That would not make sense anyway as they don't even know where the script is being used! The script also does not contain any viruses, or cause viruses. Let someone else look at the script and confirm that! Because people can copy/crop/paste, drag and drop images, I STRONGLY recommended watermarking to identify your images (an overlay graphic or text) to make the image something that someone else would not want to take. Putting a logo, or phrase as an overlay will make the image viewable, but others would not want to take it because it is not clean, unaltered. I sent you to samples of what I mean. Takes just a few minutes to update several photos. By the way, I just tried your webpage in MOZILLA FIREBIRD and I see an alert box "right click disabled" then I see the normal right click menu, but NO OPTION for image save. Thumbs Up In Netscape 6, I get a warning, then when you move the mouse OFF the image, the standard menu that appears. Same thing as in IE 5.5 and 6.0 That's exactly the point. The save image is still in the context menu, but note that menu appears when you are not on the image itself. Thumbs Up -Samantha Quote
Virtual Imager Posted July 22, 2004 Posted July 22, 2004 if you try to remove this: By Dynamicdrive.com For full source, Terms of service, and 100s DTHML scripts Visit http://wwwxxx.com from the html, it will indeed put a virus on your computer. I tried it twice and both times Norton AV detected a virus and denied it access. Could be a coincidence that I got two identical viruses from other sources at exactly the times I published those two pages (at seperate times), but I doubt it. By the way, I just tried your webpage in MOZILLA FIREBIRD and I see an alert box "right click disabled" then I see the normal right click menu, but NO OPTION for image save. In Mozilla, if the alert box happens to pop up on top of an image, rather than on text or blank space on the page, you will get the menu with the image save options when you click ok. I don't get a warning on mouseover in either Netscape 7.0 or IE 6.0... Just the alert box. VI Quote
MoonFaery Posted July 25, 2004 Posted July 25, 2004 *grins* On my mac I just normal click and drag to my desktop, no need to right click at all..... *whistles* That's pretty cool, I tried that on my PC and it worked Quote
Virtual Imager Posted July 25, 2004 Posted July 25, 2004 It worked on my PC too, but when I tried to open the image from the desktop I got the 'forbidden' 403 error. I guess hotlink protection takes over at that point. Quote
MoonFaery Posted July 25, 2004 Posted July 25, 2004 Weird, with the ones with the no right click, it wouldn't drag to my desktop at all. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.