Url-Shorten-Worker icon indicating copy to clipboard operation
Url-Shorten-Worker copied to clipboard

[Request] Check URL before submit if exist

Open erolj opened this issue 4 years ago • 3 comments

Hello, I have a user who keeps abusing the site by submitting a specific URL multiple times each day. How can I check the URL before submitting if it already exists or not, and simply showing an error message "URL has been submitted before. Check this URL: http://shorten.li/bHNv1P" ??

Thank you.

erolj avatar Nov 21 '21 16:11 erolj

Thank you for your suggestion. This feature is on the plan, but I haven't finished it yet because I've been busy these days. I hope that I am able to complete the feature in late December, so stay tuned!

xyTom avatar Nov 26 '21 20:11 xyTom

This feature has been added, but is turned off by default, as turning it on will increase kv quota consumption. If you need to use this feature, make sure to change config.unique_link=true in index.js.

https://github.com/xyTom/Url-Shorten-Worker/blob/779653193d066a7b1267c2288a46d36b171a1c9e/index.js#L5

xyTom avatar Feb 25 '22 12:02 xyTom

This feature has been added, but is turned off by default, as turning it on will increase kv quota consumption. If you need to use this feature, make sure to change config.unique_link=true in index.js.

https://github.com/xyTom/Url-Shorten-Worker/blob/779653193d066a7b1267c2288a46d36b171a1c9e/index.js#L5

Hi, Thanks for you work I have a question, how can this feature increase KV quota consumption? I though It would lower the write consumtion

ngdbao avatar Sep 27 '22 12:09 ngdbao