Hide My Pics - image protection plugin Hide My Pics - image protection plugin
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Hide My Pics - image protection plugin

Started by ron4mac, February 01, 2020, 02:51:16 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ron4mac

This plugin hides the direct locations of your image files by encoding the links to the files. And the links are only valid for a few seconds. Trying to use the link later will not result in accessing the image file. It is best used with the "transparent overlay" CPG option. It can also inhibit right-clicks on any images.

Configuration options are: whether to inhibit right-click and how many seconds before image links become invalid.

Note: Not compatible with lazy-load plugin unless validity timeout is set to zero.

Update: 19 May 2020, v1.1
  Improve compatibility with different PHP configurations
Update: 24 May 2020, v1.1.1
  Accommodate systems that may have no PHP encryption extensions installed.

tonyyears

Quote from: ron4mac on May 14, 2020, 03:03:08 PM
An alternate solution:
https://forum.coppermine-gallery.net/index.php/topic,80066.0.html

Fatal error: Call to undefined function random_bytes() in /home/_____/public_html/gallery/plugins/hidemypics/codebase.php on line 61

ron4mac


tonyyears


ron4mac


tonyyears

It shows a big "X" in all the pictures. I uninstalled it.

ron4mac

#6
Quote from: tonyyears on May 24, 2020, 06:52:07 AM
It shows a big "X" in all the pictures. I uninstalled it.
Like I had suggested before, I believe you have some configuration issues with your system. It should normally show your images okay and only show the "X" image if someone tries to acquire the image.

Perhaps you have no encryption extensions installed with your PHP. I have updated the plugin to accommodate that situation (v1.1.1).

tonyyears

Quote from: ron4mac on May 24, 2020, 02:28:33 PM
Like I had suggested before, I believe you have some configuration issues with your system. It should normally show your images okay and only show the "X" image if someone tries to acquire the image.

Perhaps you have no encryption extensions installed with your PHP. I have updated the plugin to accommodate that situation (v1.1.1).

It still shows the X and no pictures.

ron4mac

Well, if it's not a cache issue, I guess it's just not going to work on whatever setup your gallery is on.

tonyyears

Quote from: ron4mac on May 25, 2020, 04:13:16 AM
Well, if it's not a cache issue, I guess it's just not going to work on whatever setup your gallery is on.

Is there a way just to disable the right click on the pictures? Specially the thumbnails and the normal pictures
Because that seems to work with the plugin. 

ron4mac

#10
Quote from: tonyyears on May 25, 2020, 05:18:56 AM
Is there a way just to disable the right click on the pictures?

Comment out line 6 of codebase.php:
// $thisplugin->add_filter('picture_url','hidemypics_url');

But I'd really like to know why the plugin is not working on your gallery? Can you provide me with admin access to the gallery?

Just in case you haven't tried this - could you make the link valid timeout longer (10s) to see if that makes a difference?

tonyyears

Quote from: ron4mac on May 25, 2020, 03:24:59 PM
Comment out line 6 of codebase.php:
// $thisplugin->add_filter('picture_url','hidemypics_url');

I don't understand. I just want to disable the right clicks on the images.

ron4mac

Quote from: tonyyears on May 27, 2020, 11:48:30 PM
I don't understand. I just want to disable the right clicks on the images.

You need to edit the hidemypics/codebase.php file and put 2 forward slashes (//) at the beginning of line #6. Then, just the no-right-click part of the plugin will be active (plugin must be installed and enabled).

Are you by chance using the lazy-load plugin, as well. Lazy-load and HideMyPics are not fully compatible. Scrolling the window would likely reveal "X" images.

tonyyears