midpen Posted December 10, 2009 Share Posted December 10, 2009 How to disable right-click to protect the popup "click to enlarge" window? Thanks for help! Link to comment Share on other sites More sharing options...
spooks Posted December 10, 2009 Share Posted December 10, 2009 How to disable right-click to protect the popup "click to enlarge" window? Thanks for help! Thats done with http://addons.oscommerce.com/info/5787 but if you would be better looking at watermarking if your really concered, osCthumb does that. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
MrPhil Posted December 10, 2009 Share Posted December 10, 2009 Most, if not all, "disable right click" schemes depend on the browser running Javascript. All a thief needs to do is disable Javascript, and they'll be able to right-click all they want. As @spooks said, if you're trying to protect images, watermarking is far more effective. Link to comment Share on other sites More sharing options...
midpen Posted December 11, 2009 Author Share Posted December 11, 2009 Thats done with http://addons.oscommerce.com/info/5787 but if you would be better looking at watermarking if your really concered, osCthumb does that. Thanks Sam. I am using lightbox for enlarged image. Better Product Preview with Lightbox 2 your code is not working for my lightbox. How to disable right-click on the popup lightbox of enlarged image window? For watermarks, I could do it in Photoshop, it is easy. Disable right-click, could double protect for images would been copied. Thanks all. Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 11, 2009 Share Posted December 11, 2009 For watermarks, I could do it in Photoshop, it is easy. Disable right-click, could double protect for images would been copied. Disabling right click only offers protection against casual web-browsers. Anyone with some experience with copying images can easily get around it so it offers very little protection. At the same time, by preventing right clicking, you are stopping things like Send this page to a friend, thus possibly hurting your site. It should not be used. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Xpajun Posted December 11, 2009 Share Posted December 11, 2009 Right click?? If I want a copy of a image I can just drag it off the page to my desktop - who needs right click :-" :-" My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
a.forever Posted December 13, 2009 Share Posted December 13, 2009 Right click?? If I want a copy of a image I can just drag it off the page to my desktop - who needs right click :-" :-" And I delve into my Temp. Internet Files that are hidden deep in my system files...ya know, when you need to loot a database worth of images that aren't watermarked. :thumbsup: Watermark your images; it deters more theft than people think. If you want further protection, use http://addons.oscommerce.com/info/6066 and invoke the hotlink protection scripts so that other people don't hyperlink directly to your images. Link to comment Share on other sites More sharing options...
midpen Posted December 13, 2009 Author Share Posted December 13, 2009 And I delve into my Temp. Internet Files that are hidden deep in my system files...ya know, when you need to loot a database worth of images that aren't watermarked. :thumbsup: Watermark your images; it deters more theft than people think. If you want further protection, use http://addons.oscommerce.com/info/6066 and invoke the hotlink protection scripts so that other people don't hyperlink directly to your images. Thank you! I don't know how to use this add-on, could you please explain a little detail? Thanks. Link to comment Share on other sites More sharing options...
MrPhil Posted December 13, 2009 Share Posted December 13, 2009 FIMBLE's add-on 6066 includes, among other things, "hotlink protection" entries that go in your site's .htaccess file. If you're on a Windows server, you're out of luck. The idea is to redirect requests for images from other sites to a nasty message or just a 40x failure code. Your own site, and other selected sites that you want to access your images (e.g., eBay), are put in a whitelist (exempted domains list). They won't be barred from displaying your images. If you want to be able to show images directly on your browser, you need to add an entry to the whitelist to exempt %{HTTP_REFERER} !^$. By the way, some parts of the add-on are poorly written. It puts the switch to turn register global variables off in .htaccess, under a php_flag entry, when on most servers it should be in a php.ini file. Also, it only bans .gif and .jpg files -- you probably want to expand that list to other image (and non-image) file types found on your site, such as .png, .pdf, .jpeg, etc. You don't put the whole thing shown into your .htaccess -- just the parts you need and you understand what they're doing. Here's another example of hotlink protection: RewriteEngine on # hotlink protection and allowed list # don't forget to add https: for any with SSL ## uncomment following line to PERMIT direct browser access of image files #RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURSITE\.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://forums\.oscommerce\.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://SUBDOMAIN\.YOURSITE\.com(/)?.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://cgi\.ebay\.com(/)?.*$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] It permits your site (with or without www.), www.oscommerce.com/forums, a subdomain on your site, and eBay to display your images (.jpg, .jpeg, .gif, .png, and .bmp). Any other site "hotlinking" to yours to steal images and bandwidth will get a 4-0-something error code. Link to comment Share on other sites More sharing options...
airbrushmaster Posted December 13, 2009 Share Posted December 13, 2009 disable right-click wont stop it if they want them they can still get them so not much point Link to comment Share on other sites More sharing options...
lindsayanng Posted December 13, 2009 Share Posted December 13, 2009 Ignore these people.. Disabling right click does help. I have a photography website and before we disabled right click we were seeing our pictures on blogs and everything. People would basically hire us to come take pictures and then right click and save to their desktop to share on facebook or on their blog. We do also watermark our images... When we added the disable right click, all of that stopped.. and you want to know why??? The average web browser doesn't know how to get around it and they don't care to learn. They know what they are doing is wrong and generally when they right click and it doesn't work, they just give up. 90% (or more) of our clients are average or below average web browsers.. And guess what... AVERAGE means that there are more people who don't know how to get around it than people who DO know.. so you are still protecting your website against the average user. All i did to protect my images was watermark and used a javascript disable right click function. It was easy and i;'m sorry guys.. IT WORKS> You just have to be aware that you cant protect your images from everyone, but you can work it in a way that it protects them from the average user and if they get them, they will end up with a watermarked image anyway whichmeans its free advertising for your business A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
midpen Posted December 13, 2009 Author Share Posted December 13, 2009 I do agree with you Lindsay. Not all customers are excellent in computers as people here in this forums. Nothing is 100% safe. I believe most of the customres will give up if right-click doesn't work. I do feel it works. I am using lightbox for enlarged image (only single image). Better Product Preview with Lightbox 2. Do you know how to code for disabling right-click on the popup lightbox of enlarged image window? Thank you very much! Link to comment Share on other sites More sharing options...
MrPhil Posted December 13, 2009 Share Posted December 13, 2009 Well, the point is, it doesn't take much computer sophistication to find your way around a right-click ban, or other ways to steal images (drag and drop, fish through the cache, etc.). Don't forget, that if half your visitors are below average (i.e., need to be reminded to keep breathing), the other half are above average! The watermarking probably accomplished most of your reduced theft, not right-click disable. By the way, what are/were you doing putting finished jobs on display where anyone could just grab them? Proofs are always either watermarked, or the colors are played with, to make them unusable. I remember years ago my father got a proof of a family portrait, where the color balance had been futzed. He didn't want to pay the going price, and spent hours trying to "fix" the portrait in his darkroom (ended up having to buy the portrait). If I want to burglarize your home, you can lock the doors all you want. I'll just go around back and smash a window and go in that way. Any one security measure will keep out the bottom X% of thieves, but not all of them. Adding more layers of protection increases the odds that they'll go elsewhere, where the pickin's are easier. The bottom line is: don't implement a right-click disable, and expect it to cure your problem of theft of images. It won't, all by itself. Link to comment Share on other sites More sharing options...
lindsayanng Posted December 13, 2009 Share Posted December 13, 2009 First off, half is not average. If the average user does not know how to get around the right click (which is case) then more than half can not get around the right click Developers do not understand the lack of knowledge that the average person has when it comes to stuff like this. The REAL point is that it doesn't take too long to disable a right click.. Itsnot hard and it DOES deter more than half of the users. If you can deter more than half of the users, you are making progress. You also did not read what I said. Watermarking did NOT deter theft. I told you that when we just had watermarks, we found out pictures all over the internet.. On blogs and facebook mainly. It wasn't until disabling right click that we have not found ONE image illegally used. Photography has changes since the day of film. You put the finished product online to proof them. You want the finished product to look FINISHED so you do as much editing as you need to in order to make the image look good at that low of a resolution. There is a lot of work that goes into making these images look great for the web, but when the client buys their pictures, we do a little more touching up and that is it. Why would you mess with the output when you are trying to sell your pictures as great pictures? Why would you distort the color or blur? It makes no sense. You are better off watermarking and disabling the right click and letting your images look great - look like they will look when the prints arrive at their house. The point with being a photographer is to show your best work that you have so that you can sell your prints (or your service to another bride looking). So what you do is take the most steps you can to deter theft, but you should never risk the quality of your pictures in fear that someone will steal them because they look as good online as they would if they bought them. You are best loosing a print sale or two instead of loosing a new client or another wedding. In my experience, disabling the right click deterred out clients from stealing our images so far at 100%. We have been live for 2 years. In the first few months of having these proofs online w/o right click, we found about 15 pictures (from 3 different clients) on other websites with our watermark. When we enabled the disable right click, we managed to cut that completely out. We keep a close eye on where our pictures might be, and although we can not possibly find every picture there is online, we do watch for our filenames and meta data that might be displayed on other websites. Google alerts can be your friend here! So yes.. disabling right click will work to deter people from stealing. it will not deterr everyone and it will not be iron clad, but it is worth doing A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
lindsayanng Posted December 13, 2009 Share Posted December 13, 2009 oh.. i have prettyphoto (similar to lightbox) installed and I used the nocick javascript file that you can find online. You can read here: My link and read this My link A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jhande Posted December 13, 2009 Share Posted December 13, 2009 I agree, dis-abling right click will not prevent 100% of online content thief, but it will help. It might not take much computer sophistication to figure a way around it, but a good percentage of the "average" web browser hasn't a clue. Nobody in my family has any idea how - mother, father, sister, mother-in-law, sister-in-law, niece or even some of my neighbors or ex co-workers. Sure I'm guilty of internet image theft. One of my wholesale suppliers doesn't offer me image downloads, fire up Paint Shop Pro and cut the image I want from my screen. I think the disabled right-click just helps keep honest people honest. If someone REALLY wants your image, water-marking won't stop them either, I know. So lock your doors and windows, install a buglar alarm and let the German Shepard run loose in the house. It'll at least slow them down! - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
burt Posted December 13, 2009 Share Posted December 13, 2009 None of you are looking at this from the viewpoint of accessibility. If you stop people from browsing in the way that they want to, you are potentially opening yourself up for litigation, especially in a litagious country such as the US. Im rather looking forward to seeing Lindsay on Judge Judy ;) Link to comment Share on other sites More sharing options...
lindsayanng Posted December 13, 2009 Share Posted December 13, 2009 umm, how in the world is disabling right click in any way illegal? The text is not disabled from viewing in a larger font for reading.. They arent hiding the source. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
spooks Posted December 13, 2009 Share Posted December 13, 2009 oh.. i have prettyphoto (similar to lightbox) installed and I used the nocick javascript file that you can find online. You can read here: My link and read this My link Me thinks sometimes poeple argue too much!! A little suggestion, your code you linked will work fine, but there is an easier solution, in the header.php file, add: <script type="text/javascript"> var error="Write click disabled"; document.oncontextmenu=new Function("alert(error); return false") </script> no need to modify all your docs then, ps may not work in all browsers. pps, change colour balance? photoshop has auto fix function!! PPPS Dyslexia lures KO!!.. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
jhande Posted December 14, 2009 Share Posted December 14, 2009 None of you are looking at this from the viewpoint of accessibility. If you stop people from browsing in the way that they want to, you are potentially opening yourself up for litigation, especially in a litagious country such as the US. Im rather looking forward to seeing Lindsay on Judge Judy HUH...??? Disabling right-click on images is an infringement on a persons legal right of web browsing? Damn there's tons of sites out there breaking the law! Last I knew the owner of a web site has all the right to protect any and all of their content, as referenced to/by copy right laws. Guess that recently changed?? - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
jhande Posted December 14, 2009 Share Posted December 14, 2009 Me thinks sometimes poeple argue too much!! - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
lindsayanng Posted December 14, 2009 Share Posted December 14, 2009 jhandle.. its not. There is no law stating this, and although something is/might be in legislation, if it was the case, ALL flash based websites would be infringing. Its not illegal and no one can sue me because I disabled right click.. not to mention disabling right click does NOTHING to prevent accessibility for blind browsers. They all still have alt tags and can still read the images through the page source A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
jhande Posted December 14, 2009 Share Posted December 14, 2009 For a minute there Lindsay I thought something nasty happened while I napped. LMFAO - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
lindsayanng Posted December 14, 2009 Share Posted December 14, 2009 No. I don't know where that comment came from. I mean, there's a supposed law suit (not sure if a judge has even agreed to see it) against target saying that thier website does not meet accessability standards for the blind, but that suit has nothing to do with disabling right click. When you disable right click, all you do is disable it. That's it. Obviouslythe picture is still there and if you have apt tags, those are readable by the browsers for thr blind. That's it. That's what you need to be considred "accessable". Your website text should be readable by these browsers and there should be descriptive alt tags. I'm sure there's more you can do ( like an alt side for these browsers) but the ability to read the text including alt tags is all a browser like that really needs A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
a.forever Posted December 14, 2009 Share Posted December 14, 2009 Ignore these people.. Disabling right click does help. 90% (or more) of our clients are average or below average web browsers.. And guess what... AVERAGE means that there are more people who don't know how to get around it than people who DO know.. so you are still protecting your website against the average user. I'd like to point out that, to my knowledge in reading prior posts, no one ever said that disabling right click did not help. Of course it does. But it should not be the only method invoked for image protection. Unfortunately, this thread only asked for a sole method and we, as helpful members of these forums, provided additional measures of security that should be explored. The demographics of "average user" will change over time. I wouldn't be amazed if the younger generation knew more about this stuff than the average user (and the younger they are the more desperate they can be!). And as people become more educated, more people will overcome the barriers we put up. It could be as simple as asking someone else who knows how to do it. But that's my two cents. Oh, and here's a nifty thing my younger sister brought up that I didn't think of. If an image is of good enough quality, instead of digging around or breaking right click, just hit the Print Screen button on your PC and paste it in MS Paint. Go figure. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.