[TYPO3-english] Restrict access to files referenced on pages

Christoph Holtermann c.holtermann at gmx.de
Mon Nov 24 23:38:35 CET 2014


Am 24.11.2014 um 23:17 schrieb Peter Kühnlein:
> Am 24.11.2014 22:52, schrieb Christoph Holtermann:
>> Hello,
>>
>> is there a possibility or extension to restrict access to files
>> in folders to files that are being referenced by active pages ?
>> So if I have page A where file B can be downloaded I want to
>> stop access to file B when page A goes offline (deleted
>> or inactive).
>>
>> I believe that in general I have all my files in a download folder
>> that can be accessed from the outside and every link on a
>> page in TYPO3 to such file is just a link and if copy that link
>> I can access that file all the time even if the page got deleted.
>> If the page exists doesn't matter because it's just a collection
>> of links to my download folder.
>>
>> I know that in mediawiki there is an extension that changes
>> the behavior so that all files are in an restricted area that
>> can not be accessed from the outside. The link on a page
>> fetches the file, maybe generates a dynamic copy of that
>> file or however that may be handled there. The effect is that
>> the file can only be accessed via the page / the link makes
>> a call to the system first to ask if the file is active and only then
>> grants access.
>>
>> The thing is that access to files by google etc. shall be limited
>> to the files on online pages.
>>
>> regards,
>>
>> Christoph Holtermann
> Hi Christoph,
>
> As far as I understand your problem, your .htaccess is your friend here. Just deny the access to the files there. No extension necessary - it works right on the server level.
>
> Be safe,
> Peter
>
I don't understand how to use the .htaccess here. I can restrict access to a certain directory/file by using it. But how to connect that to the activity state of a certain Typo3 page ?

regards,

Christoph

-- 
--- Nachricht gesendet von C. Holtermann ---
-                                          -
-  Verschlüsselte Nachrichten können über  -
- den öffentlichen Schlüssel auf folgendem -
- Keyserver an mich gesendet werden:       -
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x4DD9CF0482B0620B



More information about the TYPO3-english mailing list