Page 1 of 2
How to protect my photos?
Posted: 10 Apr 2015, 03:59
by kungphoto
How can i don't let others download photos from my website?
Re: How to protect my photos?
Posted: 10 Apr 2015, 04:54
by mjau-mjau
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.
Re: How to protect my photos?
Posted: 10 Apr 2015, 05:17
by kungphoto
OK
then how to add a right-click prevention function???
Thx
Re: How to protect my photos?
Posted: 10 Apr 2015, 07:00
by andreamarucci
About that issue, there's a watermark function embedded in IV?
Re: How to protect my photos?
Posted: 10 Apr 2015, 19:56
by localhost
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.
Re: How to protect my photos?
Posted: 11 Apr 2015, 00:18
by mjau-mjau
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:
<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:
<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/
Re: How to protect my photos?
Posted: 11 Apr 2015, 00:31
by mjau-mjau
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.
Re: How to protect my photos?
Posted: 11 Apr 2015, 00:34
by mjau-mjau
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.
Re: How to protect my photos?
Posted: 11 Apr 2015, 13:11
by masquefotos
What do evil so that the script does not work?
Re: How to protect my photos?
Posted: 11 Apr 2015, 15:26
by illunis
It does not seem to be working
<script>
function x3_load(){
$('body').on('contextmenu', 'img', function(e){ return false; });
}
</script>
Re: How to protect my photos?
Posted: 12 Apr 2015, 00:00
by mjau-mjau
Where did you add the script? I specifically said to add it to panel > custom/javascript/
None of you have added the script there ...
Re: How to protect my photos?
Posted: 12 Apr 2015, 00:19
by kungphoto
Re: How to protect my photos?
Posted: 12 Apr 2015, 02:51
by mjau-mjau
kungphoto wrote:i've already added the script, but..................
still can download ny right click

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.
Re: How to protect my photos?
Posted: 12 Apr 2015, 04:45
by illunis
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?
Re: How to protect my photos?
Posted: 12 Apr 2015, 04:49
by masquefotos
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