Code Monkey home page Code Monkey logo

url-shortener's Introduction

Flask URL Shortener

A python Flask and MySQL based URL shortening project that I built for personal use. You can try out and play with the deployed version at Sh.ubham.com/shorten.

Some key Features

Ability to change short URL destinations without Login

I required that my URL shortener posses the ability to change URL destinations without having the need of a login or creating an account of any type an consequently I opted with the mechanism where along with the short URL another URL called the change URL is generated. This URL presents a page which allows the user to change the destination of their short URL as many times as required without any need for authentication.

This change URL is only presented once to the user during the short URL creation process. If the user fails to save or Bookmark the Change URL then it is lost forever and can not be retrieved again. So the user also looses the ability to change the destination of their shortened URL.

Security aspects of the "Change URL" mechanism

  • The change URL is randomly chosen among a trillion possibilities and that should prevent any attempts to guess the change URLs.

  • Even if a Change URL is discovered, the Change URL page doesn't contain any details about which short URL's destination it can modify.

  • By using a Captcha service such as Google's new Invisible Captcha service on the change pages, the attacks possible by bots trying to guess change page urls can also be prevented.

url-shortener's People

Contributors

aerophile avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

envererguven

url-shortener's Issues

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.