Announcement

#1 2018-03-07 10:53:16

Ralf
Member
Dorsten-Lembeck
2012-05-08
154

original_url_protection

Hi,

can someone explain me what this parameter exactly does?

I thought this would 'protect' images called per url.

Example:
Opening images directly per url:
http://domain/galleries/people/image123.jpg

should be forbidden.

I tried to add this in locale files editor as described in the reference:
// one of '', 'images', 'all'
//TODO: Put this in admin and also manage .htaccess in #sites and upload folders
$conf['original_url_protection'] = '';

But can not see any changes.
Opening images directly (if I know the url) is still possible.

So I guess I am understandig something wrong.

An so my question is:
What does this entry in the local files editor protect?

Cheers
Ralf


There are only two kinds of music:
Rock and Roll

Offline

 

#2 2018-03-08 12:06:46

flop25
Piwigo Team
2006-07-06
6871

Re: original_url_protection

Hello
this just makes Piwigo using everytime for images or all media the url i.php?xx instead of the direct url to the picture
as written you have to manually add an htaccess to then restrict the direct access to the picture
Be aware that will have an impact on the performances


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2018-03-08 12:10:02

Ralf
Member
Dorsten-Lembeck
2012-05-08
154

Re: original_url_protection

Hi Flop,

thanks for clearification.

Ralf


There are only two kinds of music:
Rock and Roll

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact