Skip to content

Allow multiple downloads from same IP #3

@tobijahu

Description

@tobijahu

The current one-time-access deletes all files directly after the first access with response code 200. In practice this is not handy in the communication with organizations. Meaning, if the recipient is possibly not just a single person, but multiple persons or a team.

In this case it could be an option to let the deamon add an .htaccess rule to the particular dir, that restricts access to just a single IP address -- that one which accessed the file in first instance.

In lighttpd this could be done in a .htaccess file.

ErrorDocument 403 /some-error-page.html
order deny,allow
deny from all
allow from 128.16.32.64

In apache this could be done by the following .htaccess file content using authz_host_module.

<RequireAll>
    Require ip 16.32.64.128 128.64.32.16
</RequireAll>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions