GithubHelp home page GithubHelp logo

changkun / redir Goto Github PK

View Code? Open in Web Editor NEW
91.0 6.0 11.0 8.89 MB

🧭 Full-featured, self-hosted URL shortener.

Home Page: https://changkun.de/s/redir

License: MIT License

Makefile 1.21% Go 63.11% Dockerfile 0.20% HTML 10.39% CSS 1.64% JavaScript 23.46%
url-shortener golang go redirector redirect-urls link-shortener vanity-url vanity-import gdpr-consent

redir's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

redir's Issues

Render PDF as webpage

Redirecting to a PDF location is confusing for users. We want them to stay on the same URL.

If the file is a PDF, let's render the PDF as HTML.

TODO

  1. Add valid duration: start accessible since
  2. Redo stat UI: Add edit table, PV/UV time histograms,
  3. GDPR strict: No cookie (stop using google analytics), don’t store a full IP address, transform and hashing it for identification
  4. Remove random kind and add tagging: add tags to aliases, stat UI should be able to filter it out
  5. private and public indexes (admin can specify if a link should be publically listed)
  6. group links: random redirect for AB testing not now
  7. redir -dump to dump all aliases, for crontab backup purpose

Warn about external redirects

After discussion of more prominent use cases, to protect users, external redirects of a domain should be warned on the visitor side, and redirect if and only if the user acknowledges that.

This of course hurts the UX but seems to be the only solution.

Possible improvements

  • Batch creates (already supported via command line)
  • Additional / in the create message
  • Sort results in the admin view
  • Statistics can be range queried (although already supported via API but not the UI)

From @yangwenmai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.