hi David,
thank you for mentioning the login plugin.
actually this plugin is allready installed and configured.
and in fact there is an option to inherit the login requirements and even an option to protect media files residing in protected page folder.
unfortunately this only works if the pages or files are requested by a "normal" url. e.g. <grav-root>/myParentFolder/page.
The problem appears in the following situation:
- i use numerical prefixes to order the parentFolder and pages
- now i for example want to present all media files within subfolder using a simple loop to get the url() from any media file, the url is calculated as <gravroot>/user/pages/<prefix-number>.page (or path)
- in this case i recognized, that the given url() ist NOT protected anymore.
so there are three possible mistakes:
- i misconfigured something - which i would think is most likely
- the plugin does not a good job, just prevent files from beeing loaded via given url
- the method to get the url() responds little too much from the file path (for now it happens on a xampp on windows)
However - inspecting this problem i noticed, that the last example of <gravroot>/user/pages/<prefix-number>.page (or path)/<prefix-number>.subpage/<myFile> would always be public - i think it happens due to the inserted "./user/pages/. " part of the url - but this is always reacheble.
since a simple .htaccess logon would not show any hints to dsgvo on the logon dialog this is not an option.
so i am still stuck at this
kind regards
Odde
[edit:
after getting this problem fixed, the site will live on an apache or similar, proxyPassed by another apache within a virtualHost directive.
both running on CentOS]