Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

disable MS IE right-click - save/print/etc
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=959
Page 1 of 1

Author:  lucky666 [ 22. Mar 2007, 06:48 ]
Post subject:  disable MS IE right-click - save/print/etc

hi guys

i'd like to set things so photos can't be saved/printed from the site (wanting to use it for staff ID photos & can't let them be taken off the server) - i've disabled downloads, but using MS IE you can still save/print/etc using right-click or just hover over the pic.

has anyone got thoughts on how this could be achieved (remembering i'm not a php guru)

thanks for any help

phil

Author:  TinyWebGallery [ 22. Mar 2007, 10:38 ]
Post subject: 

You can disable right click with javascript

set

$disable_right_click=false;

to

$disable_right_click=true;

use 1.6 rc2 from the forum!

/Michael

Author:  lucky666 [ 23. Mar 2007, 06:42 ]
Post subject: 

Thanks Michael - worked great for the right click!

Small problem though - when the mouse hovers over a selected image we still get a small GUI help bar appear at the top left of the image with icons for save, mail, print etc - is there a way to disable this?

Thanks for your help so far.

Phil

Author:  TinyWebGallery [ 23. Mar 2007, 09:06 ]
Post subject: 

no - but you can always turn of Javascript and save the image - use watermarks ;)

Author:  lucky666 [ 24. Mar 2007, 08:53 ]
Post subject: 

Trouble is we are wanting to use it for staff ID photos and can't let them be taken off the server - it's not a copyright problem, it's a security issue.

Any thoughts or suggestions as to how we could go about this?

Ta

Phil

Author:  TinyWebGallery [ 24. Mar 2007, 12:06 ]
Post subject: 

then Internet is not the right thing - everyone can always make a screenshot ;) no way to prevent this.

/michael

Author:  lucky666 [ 24. Mar 2007, 12:29 ]
Post subject: 

Thanks for responding Michael

Actually it is on an isolated intranet - yep, they can screen dump, but the resolution goes to the dogs - what we are trying to stop is the "Save..." option which will still give them an image with reasonable res.

Any thoughts?? - personally I'm agreeing with you, you can't stop people if they have half a brain, but I just want to exhaust all possabilities before I pull the pin.

Thanks

Phil

Author:  TinyWebGallery [ 24. Mar 2007, 12:31 ]
Post subject: 

if you use twg - disable the download if images - then only the images displayed on the detail page can be ""copied" and there it does not matter if you use save as or make a screenshoot.

Resolution is the same

Author:  lucky666 [ 29. Mar 2007, 06:34 ]
Post subject: 

Thanks for your help.

I had already disabled the image download from within TWG - it was the image toolbar that was getting up my nose.

Found out that it is simply a meta tag that turns it off.

Add the following to inc/head.inc.php & the toolbar is disabled for all pages :-
Code:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">


This combined with
Code:
$disable_right_click=true;
has provided what I was after.

Thanks again for your help

Phil

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/