Forums / General Questions / Disable right-click?

Disable right-click?

Locked

Started by winterstorm on 2 Sep 2007, 11:51 AM · Views: 3,582

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
2 Sep 2007, 11:51 AM
#1
winterstorm avatar

winterstorm

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Disable right-click?

First of all, my sincerest apologies if this has been addressed elsewhere. I did look around for the answer. Does anyone know of a way to disable the customers right-click function in Zen Cart?

Cheers :smile:

I have bought the Book, but it hasn't arrived yet...

2 Sep 2007, 12:00 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Disable right-click?

What specific thing are you attempting to prevent?

Zen-Venom Get Bitten

2 Sep 2007, 12:26 PM
#3
winterstorm avatar

winterstorm

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Disable right-click?

My wife has been kind enough to let me use her stock photos, which she sells elsewhere on stock photography sites. I would like to prevent ppl easily downloading them by the right-click/save picture as... function.

I have bought the Book, but it hasn't arrived yet...

2 Sep 2007, 12:57 PM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Disable right-click?

Your best bet is to watermark. I use firefox and I can get all of your images without using right click.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

2 Sep 2007, 1:05 PM
#5
winterstorm avatar

winterstorm

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Disable right-click?

I understand all of that. Would still like to do it though.

Cheers

I have bought the Book, but it hasn't arrived yet...

2 Sep 2007, 1:15 PM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Disable right-click?

http://www.dynamicdrive.com/dynamicindex9/noright.htm

Then follow the directions in the docs folder of your ZC installation for the javascript, so tht you stick the script in correctly and in the correct folder so it auto loads

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

2 Sep 2007, 2:20 PM
#7
winterstorm avatar

winterstorm

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Disable right-click?

Many thanks! Works a treat! BTW, you wouldn't poss know how I could put this on all of the pages as well:

<meta http-equiv="imagetoolbar" content="no">

Once again Thank You!

Cheers :smile:

I have bought the Book, but it hasn't arrived yet...

2 Sep 2007, 2:29 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Disable right-click?

By default, that is already built into Zen Cart ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Sep 2007, 2:35 PM
#9
winterstorm avatar

winterstorm

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: Disable right-click?

Thank you, thank you, thank you!

Cheers mate!

I have bought the Book, but it hasn't arrived yet...

2 Sep 2007, 5:53 PM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Disable right-click?

barco57:

Your best bet is to watermark. I use firefox and I can get all of your images without using right click.

How? Using "Save As"

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

2 Sep 2007, 6:11 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Disable right-click?

superprg:

How? Using "Save As"
Hey this is not really the place to learn how to "Hack" a site or ask how...

Enuff said that it can be done

Zen-Venom Get Bitten

2 Sep 2007, 9:42 PM
#12
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Disable right-click?

I think this is one case where telling people how easy it is (and it's nothing to do with which browser you use) will save people wasting time and money trying to prevent the impossible. But rather than start an argument, suffice to say that anyone with a keyboard can copy any image that's displayed on the screen.

There are 2 things you can do to reduce the risk - watermark (and for that to be any use, you must spoil the image you are using...it's totally pointless putting a watermark in the white space) and ensure that your images are always uploaded at 72dpi and never larger than 750px x 550px so that if anyone does try to print them, they'll look awful.

By the way, disabling right click completely will lose you far more clients than any advantage you gain.

Oh - and barco57...your wife's store ... best take a look at http://www.websiteoptimization.com/services/analyze/wso.php?url=http://www.stabandstash.com/index.php then consider the size of some of your images. Those showing in your bestsellers list have massive file sizes considering their displayed dimensions.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

3 Sep 2007, 2:32 AM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Disable right-click?

Thanks Ryk,
I am aware of the large filesizes on the stab and stash page. That site is getting ready for a major overhaul, its currently 1.3.0.2 My wife handles most of that site and she needs a bit of work in the optimization department.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!