Announcement

#1 2023-04-03 17:30:30

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Disable Downloads

Hi,

is there a way to completly disable downloads for guests?
Even if you have disabled downloads for guests and the download button is not shown, userer are still able do download files.

https://pwigo_url/action.php?id=123&part=e&download

still works.

Cheers
Ralf


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#2 2023-04-03 18:15:17

Ralf
Member
Dorsten-Lembeck
2012-05-08
230

Re: Disable Downloads

Found a "dirty" trick with the htacess file:
# protect download
RewriteEngine on
RewriteRule .*download.* index.php
RewriteCond %{QUERY_STRING} .*download.*
RewriteRule .* index.php

this will redirect all urls containing the 'download' string to the index.php.
Unfortunately for all users not only for guests.

If anybody has a solution to completly disable downloads for guests i am highly interested in such a solution.


There are only two kinds of music:
Rock and Roll

https://www.ralf-kerkhoff.de

Offline

 

#3 2023-04-04 11:37:55

erAck
Only trying to help
2015-09-06
2023

Re: Disable Downloads

Why bother, even if you disable download URLs, screenshots and downloading/copying images directly always works.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact