Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
kungphoto
Experienced
Topic Author
Posts: 27
Joined: 24 Dec 2014, 04:36

How to protect my photos?

10 Apr 2015, 03:59

How can i don't let others download photos from my website?
Choose a problem to solve, not an idea to build
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

10 Apr 2015, 04:54

kungphoto wrote:How can i don't let others download photos from my website?
Unfortunately, that is impossible.

The only thing we can do is add a right-click prevention function, but anyone with basic knowledge can easily open "dev-tools" in any browser, and simply download any images that are being loaded into the website.
 
User avatar
kungphoto
Experienced
Topic Author
Posts: 27
Joined: 24 Dec 2014, 04:36

Re: How to protect my photos?

10 Apr 2015, 05:17

OK :oops: :oops: :oops:
then how to add a right-click prevention function???
Thx
Choose a problem to solve, not an idea to build
 
User avatar
andreamarucci
Experienced
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: How to protect my photos?

10 Apr 2015, 07:00

About that issue, there's a watermark function embedded in IV?
 
localhost
Experienced
Posts: 158
Joined: 20 Sep 2011, 07:09

Re: How to protect my photos?

10 Apr 2015, 19:56

Any protection is better than nothing...

Right click is a good protection for those who don't know how to open and don't understand the source code. It protects your text contents as well for copying. I'd like to see an easier way to add a javascript code on the panel similar to adding a custom CSS.

The other way to protect an image is to put password protection on the gallery. I have mentioned this to Karl already... not sure what's the standing of this request.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

11 Apr 2015, 00:18

kungphoto wrote:then how to add a right-click prevention function???
Ok, I have figured out a quick way to disable right-click on images-only. Go to your panel > custom/javascript/, and paste the following into the page:
Code
<script>
function x3_load(){
  $('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
This will just silently stop right-click context menu for images. If you want a message to appear, you can use the below, but I think that is even more annoying:
Code
<script>
function x3_load(){
  $('body').on('contextmenu', 'img', function(e){
    alert('context menu disabled for images.');
    return false;
});
}
</script>
Disabling right-click is generally frowned upon, because it does not really provide any security, but can annoy users. At least in the example above, it is only enabled for images.
http://www.sitepoint.com/dont-disable-right-click/
http://halfelf.org/2011/dont-disable-right-click/
http://security.stackexchange.com/quest ... n-security
http://www.webpagemistakes.ca/disable-right-click/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

11 Apr 2015, 00:31

andreamarucci wrote:About that issue, there's a watermark function embedded in IV?
Currently no, because of the following:

A) Watermark requires re-saving and re-compressing a Jpg image, thus leading to loss in quality. It should be applied to the "original".

B) watermarking requires a module imagemagik most servers do not have.

We will be looking further into this at some point, as it is important for many of you. We may have a few other options.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

11 Apr 2015, 00:34

localhost wrote:Right click is a good protection for those who don't know how to open and don't understand the source code. It protects your text contents as well for copying. I'd like to see an easier way to add a javascript code on the panel similar to adding a custom CSS..
Sure, see the code my previous post.
localhost wrote:The other way to protect an image is to put password protection on the gallery. I have mentioned this to Karl already... not sure what's the standing of this request.
This is another feature of course, which we hope to add relatively soon.
 
User avatar
masquefotos
Experienced
Posts: 140
Joined: 20 May 2011, 05:38

Re: How to protect my photos?

11 Apr 2015, 13:11

What do evil so that the script does not work?
Attachments
Captura.PNG
Captura.PNG (21.45 KiB) Viewed 6625 times
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: How to protect my photos?

11 Apr 2015, 15:26

It does not seem to be working :?
Code
<script>
function x3_load(){
  $('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

12 Apr 2015, 00:00

Where did you add the script? I specifically said to add it to panel > custom/javascript/

None of you have added the script there ...
 
User avatar
kungphoto
Experienced
Topic Author
Posts: 27
Joined: 24 Dec 2014, 04:36

Re: How to protect my photos?

12 Apr 2015, 00:19

Hi Karl,
i've already added the script, but..................
Right click.png
Right click.png (77.61 KiB) Viewed 6608 times
Right click2.png
Right click2.png (146.51 KiB) Viewed 6607 times
Right click3.png
Right click3.png (191.22 KiB) Viewed 6607 times
still can download ny right click :oops: :oops: :oops:
Choose a problem to solve, not an idea to build
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: How to protect my photos?

12 Apr 2015, 02:51

kungphoto wrote:i've already added the script, but..................
still can download ny right click :oops: :oops: :oops:
It works here http://www.kungchan.com/engagement/wall/ ... I can't right click anything. It could be you were viewing a cached verson? Can someone please try the link above? I admit I did not try it on windows, but it certainly works on mac, and it "should" work in windows also.
 
illunis
Experienced
Posts: 84
Joined: 14 May 2012, 07:24

Re: How to protect my photos?

12 Apr 2015, 04:45

mjau-mjau wrote:Where did you add the script? I specifically said to add it to panel > custom/javascript/

None of you have added the script there ...
I have added the code exactly where you said but it is not working and the website is not cached....maybe I am doing something else wrong?
Attachments
righ.JPG
righ.JPG (48.75 KiB) Viewed 6590 times
 
User avatar
masquefotos
Experienced
Posts: 140
Joined: 20 May 2011, 05:38

Re: How to protect my photos?

12 Apr 2015, 04:49

mjau-mjau wrote:Where did you add the script? I specifically said to add it to panel > custom/javascript/

None of you have added the script there ...
if you see my screenshot I'm on page javascrit