-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Feature Request] Expire after reading N times. #51
Comments
By view once do you mean once per user? Because this is basically impossible, or do you mean total amount of views? |
Total views by anyone/thing. |
What if bots somehow consume the views? |
Or would these pastes always have a password or potentially differnt URL path? |
A risk to be taken, but this feature is on many other paste services (and personally a favourite of mines haha) |
To clarify: If you create the paste on the frontend and you view the paste with your session cookie, does this count? Or does this session cookie get immunity? Further to the above point, creating the paste on the frontend vs API is currently different, the former always consumes a view automatically, is this considered a view? Should every self detonating paste require a password? |
The session cookie would get immunity, yes. Otherwise the "view" just after creation would consume a view from the bucket as it were. Yes, the paste creation via the frontend consumes a view so ideally this would fall into the above, where the session cookie is present and thus is immune to consuming a view (although a refresh removes that cookie and WOULD consume a view, if my understanding of the current implementation is correct). A password would be optional I believe, but I'm open to it being a necessity. |
Niche feature, I know, but good for "secure" pastes you only want to be read once.
We already filter out things like Discord's user agent, so very easy to send a paste over discord, someone views it, it burns.
Or have it read 10 times and it be gone before the 11th.
The text was updated successfully, but these errors were encountered: