Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Avoiding People Downloading The Pictures


gandamed

Recommended Posts

Posted

Hello,

Does anyone know how i can prevent people from rightclicking and then downloading the pictures that are on sale on the online store? The store owner is an anrtist and he doesnt want to have a watermark on the pictures.Thank you

Which file would i have to add behaviours too(if thats the way im supposed to do it)

Posted

You can put a "disable right-click script" on the site, but that won't stop everyone.

 

All they have to do when a script like that is installed is find the image in their "temporary internet files" folder. It'll be in there, and they can drag it out and use it for whatever.

 

I know, 'cuz I've done it before.

:blush:

 

If you really want to "protect" the images, a watermark is really the only way.

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
You can put a "disable right-click script" on the site, but that won't stop everyone.

 

All they have to do when a script like that is installed is find the image in their "temporary internet files" folder. It'll be in there, and they can drag it out and use it for whatever.

 

I know, 'cuz I've done it before.

:blush:

 

If you really want to "protect" the images, a watermark is really the only way.

:thumbsup:

Hi THANKS thats fine, i can do the disable right click script, which file should i do this on the english/index.php file.

I just have to explain to the owner that it would be more secure to have both the watermark and the disable right click..Kindly (if you know) let me know which file needs the additional script.

Thanks

Posted

Yes, the "index.php" file is the one to put it in, using the "standard" OSC installation.

 

But's it's gonna be the one in the "root" folder of your site.

:)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Yes, the "index.php" file is the one to put it in, using the "standard" OSC installation.

 

But's it's gonna be the one in the "root" folder of your site.

:)

Thank you,im going to search for the right "behaviour"

Posted
The code should go in the includes/header.php file unless you only want to right-click protect those on the index page.

 

Jack

Thank you ALL for your help, would you happen to know the exact behaviour code i thought the onclick behaviour in dreamweaver would do this but instead it does it whenever i click on the image(well..duhh), i just want to disable the right click or in the event that someone wants to download the pictures..Thank you in advance

Posted

hi

I think using Flash does not allow the user to save image.

I have done some galleries with PS like this, although I know little about Flash.

Posted

gandamed

 

Put this bit of code into the body tag of your web page:

 

<body oncontextmenu="return false;">

 

Many believe that by blocking the use of the right mouse button that they can prevent the theft of their web page content. Not true!!! There are so many ways to bypass the "no right click script" that the only effect that it has is to annoy your visitors who legitimately use the context menu (as that menu is properly called).

 

All of the scripts that I have seen to do this only block access to the context menu from the right mouse button. They don't take into consideration that that menu can be accessed from the keyboard. All you need to do to access the menu using a 104 key keyboard is to select the object on the screen (for example by left clicking on it) that they want to access the context menu for and then press the context menu key on their keyboard (it's the one just to the left of the right CTRL key) or on a 101 key keyboard hold down the shift key and press F10.

 

The body tag will block all access to the context menu (not just from the right mouse button but from the keyboard as well) and really annoy your visitors.

 

laurentb is correct about Flash, but users could still drag the Flash script out of the "temporary internet files" folder, and (using a Flash editor) still get access to the content. I've done that myself.

 

A watermark is the only way to truly discourage unauthorized use of web images, IMHO.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
gandamed

 

Put this bit of code into the body tag of your web page:

 

<body oncontextmenu="return false;">

 

Many believe that by blocking the use of the right mouse button that they can prevent the theft of their web page content. Not true!!! There are so many ways to bypass the "no right click script" that the only effect that it has is to annoy your visitors who legitimately use the context menu (as that menu is properly called).

 

All of the scripts that I have seen to do this only block access to the context menu from the right mouse button. They don't take into consideration that that menu can be accessed from the keyboard. All you need to do to access the menu using a 104 key keyboard is to select the object on the screen (for example by left clicking on it) that they want to access the context menu for and then press the context menu key on their keyboard (it's the one just to the left of the right CTRL key) or on a 101 key keyboard hold down the shift key and press F10.

 

The body tag will block all access to the context menu (not just from the right mouse button but from the keyboard as well) and really annoy your visitors.

 

laurentb is correct about Flash, but users could still drag the Flash script out of the "temporary internet files" folder, and (using a Flash editor) still get access to the content. I've done that myself.

 

A watermark is the only way to truly discourage unauthorized use of web images, IMHO.

 

Jim,

 

Can you kindly advise where is the body tag to include the code <body oncontextmenu="return false;">

 

Sorry I am new to Osc and programming.

 

Thanks for your assistance

 

Ahmed

Posted

In your "index.php" file in the root folder of your web site, there should be lines about like this:

 

</head>

 

<body>

Change to:

 

</head>

 

<body oncontextmenu="return false;">

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Hi Jim,

 

Thanks for your prompt assistance, very kind of you.

 

Following are all the <body> Showing on my public_html/index.php:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

Then, going thru the file there are the following:

 

<!-- body //-->

 

<!-- body_text //-->

 

<!-- body_text_eof //-->

 

<!-- body_eof //-->

 

And at the end :

 

</body>

 

Which one to use ?

 

Regards

Ahmed

Posted

Change this one:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

To:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" oncontextmenu="return false;">

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Thanks Jim,

 

Much obliged for your assistance

 

Best regards

Ahmed

 

Just for your information, that would not prevent anyone using a Mac from downloading an image from the site. I use Mac and all I have to do is click on the image while holding the control button to see a variety of options available to me: view image, copy image, copy image location, save image as..., etc. On sites that have some sort of protection, I can still simply drag the photo from the browser onto my desktop and drop it there.

 

The only real way, especially if your client is an artist trying to protect his/her work, is to add a watermark.

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Posted

I forgot to mention... If your client doesn't want any visible watermarks, there are companies that somehow place an invisible watermark on your photos and then track them down on the net to see if anyone is using them. They charge you for the service, but it may be worth it to protect your client's copyright. Many artists and photographers do that.

 

A search on the net will help you find that type of company.

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...