Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple downloads from same IP #3

Open
tobijahu opened this issue Aug 14, 2017 · 0 comments
Open

Allow multiple downloads from same IP #3

tobijahu opened this issue Aug 14, 2017 · 0 comments

Comments

@tobijahu
Copy link
Owner

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant