-
Notifications
You must be signed in to change notification settings - Fork 169
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] human readable url #88
Comments
How would that url be created? Using first few characters from the uploaded paste? |
@solusipse change manually by sending existed name of endpoint and preferred one delimited by a colon would be way better # derive *new* formed name of endpoint
old=$(echo 123 | nc termbin.com 9999 | cut -d/ -f4)
# set prefered
new="hope you can read it"
echo $old:$new | nc hru.termbin.com 9999
# response: "http://hru.termbin.com/hope-you-can-read-it"
if there's existing endpoint with the same name then old can be overridden or deleted |
Implementing this would require adding some kind of authentication mechanism, otherwise the service would be heavily abused. And adding authentication is probably out of the scope of this project. I was thinking about doing something similar for removing pastes that were pushed to the server by mistake. I thought that maybe we could give users 30 seconds to remove last paste they posted, but that would require storing their IP addresses (that's all we know about our users) in some database. Since this application is a basic tool, is written in C, and is dependency-free, I wanted to avoid making it too complex. Maybe we could create another service that would fullfill our fantasies 😄 Btw, that solution also opens up a possibility to abuse the service - if multiple users are posting from the same IP address. In the real world that's unlikely so maybe we'll get back to these ideas some day |
for instance
http://hru.termbin.com/this-is-can-be-readed-easily-12
hru - stands for human readable url
The text was updated successfully, but these errors were encountered: