Sink icon indicating copy to clipboard operation
Sink copied to clipboard

Feature Request: Max Usage

Open Rodaviva29 opened this issue 10 months ago • 7 comments

Summary: Add a feature that allows users to set a maximum number of times a shortened link can be used. Similar to the expiration date option in the creation process.

Usage: this feature would disable the link once it reaches the predefined usage limit, preventing further access.

Thanks and awesome project, congratz!

Rodaviva29 avatar Feb 25 '25 00:02 Rodaviva29

I could do this if I end up needing it.

7heMech avatar Mar 02 '25 21:03 7heMech

I could do this if I end up needing it.

It would be awesome, I would appreciate a lot. 💪🏼

Rodaviva29 avatar Mar 02 '25 21:03 Rodaviva29

I could do this if I end up needing it.

Can we talk about your plan first?

miantiao-me avatar May 19 '25 12:05 miantiao-me

I could do this if I end up needing it.

Can we talk about your plan first?

I honestly didn't think much about this, but if I were to do it I'd just add another field here called Max Views under optional and probably reuse the limiting functionality from date expiration (we also have views being counted already)Screenshot_20250519-154557.png

7heMech avatar May 19 '25 12:05 7heMech

If you check the usage count every time you visit, there will be a large number of failed requests to Cloudflare's API

If you use Slug as a unique value and limit the flow through Cloudflare Queues, it may be possible, but Cloudflare Queues are paid services.

miantiao-me avatar May 19 '25 12:05 miantiao-me

If you check the usage count every time you visit, there will be a large number of failed requests to Cloudflare's API

If you use Slug as a unique value and limit the flow through Cloudflare Queues, it may be possible, but Cloudflare Queues are paid services.

What if we used workers KV, it's designed for high read workflows?

7heMech avatar May 19 '25 13:05 7heMech

Okey, this is pretty much close to impossible on the free tier of Cloudflare.

7heMech avatar May 24 '25 08:05 7heMech