Search…

X3 Photo Gallery Support Forums

Search…
 
daniel
Topic Author
Posts: 12
Joined: 28 Sep 2007, 12:42

Hide path/link to photo(s) on browser

29 Nov 2019, 04:11

Hi, it is possible to hide path/link to photo(s) on windows browsers. Or change path/link to one other. This for disable the possibility for somebody to Copy/Paste this direct link to one or some photos. ?
ex: https://www.domain.com/photos/my_photo_one
to: https://www.domain.com   only
or: https://www.domain.com/my_photo_one  whitout /photos
 
User avatar
mjau-mjau
X3 Wizard
Posts: 11794
Joined: 30 Sep 2006, 03:37

Re: Hide path/link to photo(s) on browser

29 Nov 2019, 21:35

Hi Daniel. Although this could be technically possible to achieve, it's not productive and I fail to see any value.
daniel wrote: Hi, it is possible to hide path/link to photo(s) on windows browsers. Or change path/link to one other. This for disable the possibility for somebody to Copy/Paste this direct link to one or some photos. ?
ex: https://www.domain.com/photos/my_photo_one
I'm not quite sure what you mean "direct link to one or more photos". /photos/my_photo_one is NOT a direct link to an image, but would represent an image that is located at /content/photos/my_photo_one.jpg. X3 does not show direct links, although it shows URL's that are symmetric with an image path. Below is a link to an X3 image landing page:
/galleries/landscapes/antarctica/

If the visitor is technically advanced, they could use browser inspector to figure out the path to the image from that with the /content/ folder applied.
/content/galleries/landscapes/antarctica.jpg

If they already know how to use browser inspector (or in any way figure out the "content" path segment), they also know that all images will load into browser from the "network" tab, and can easily be accessed no matter what URL you use:
Image
daniel wrote:or: https://www.domain.com/my_photo_one  whitout /photos
First of all, I don't see what difference it makes with /photos/my_photo_one vs just /my_photo_one. NEITHER of those url's represent the PATH to the image, and are just virtual url's. Even with the original url /photos/my_photo_one, the user would still need to figure out the image path to be /content/photos/my_photo_one.jpg. If they can already do that, what makes you think it will be more complicated by simply removing the parent folder segment? The user can still find the direct image link by checking the files that load into browser, regardless of what path you use.

Perhaps more important in regards to this example, is that URL's need to represent a way for any application to identify and load a resource. If you use /my_photo_one instead of /photos/my_photo_one, how would X3 know where to look for the data to load for the page if it doesn't know that my_photo_one is in the /photos/ dir? What if you have /folder1/my_photo_one.jpg and /folder2/my_photo_one.jpg? It's not a technically feasible solution, even if it did provide additional obscurity.
daniel wrote:to: https://www.domain.com
Same as above. Also, with this specific solution, you would be entirely disabling SEO (search engine optimzation) and any possibility to link to specific pages on your website.

Conclusion
Unfortunately, it's not possible to block images from users who are advanced enough to use any browser network inspector. For those who are NOT advanced enough to use network inspector, what difference does it make if the url is /photos/my_photo_one or just /my_photo_one? None of those url's represent the path to the image.

As of my 15 years working with image galleries, the only way to truly block abuse of images uploaded to a website is by 1) Watermarking images, and/or 2) Using not-high-enough resolutions for unauthorized downloads to cause concern. You can block non-advanced users from downloading images by using "block image downloads" in X3 Settings > Advanced, which simply prevents right-click downloads.
 
daniel
Topic Author
Posts: 12
Joined: 28 Sep 2007, 12:42

Re: Hide path/link to photo(s) on browser

01 Dec 2019, 05:30

Hi Mjau-Mjau, thank you. It is very clear now for me. I forget this. One other time, thank you. Your answer is very interesting for me,  is very complete and very informative for me, I have learned something.