Giter VIP home page Giter VIP logo

Comments (6)

sametmax avatar sametmax commented on June 13, 2024

We got the code from Natim@28bff88 to make it work with google API.

I'd suggest:

make an settings such as :

URL_SHORTENER = {
"name": 'google',
'api key': 'bla'
}

make the python code print this as json in the HTML.
make the jscode setup the proper backup according to the name

For now we can just have google and is.gd. We can make Google's the default one, but we need to offer is.gd as an alternative (with warning regarding the https problem) because Google is becoming more and more a hot potatoes these days.

from 0bin.

v6 avatar v6 commented on June 13, 2024

// , Maybe there could be some sort of failover mode?

Reminds me of #80.

from 0bin.

timss avatar timss commented on June 13, 2024

In the event that you're hosting 0bin yourself, having a native URL shortener on that domain would be preferably in certain scenarios. Maybe it could come in the form of an additional URL rewrite/route?

from 0bin.

sametmax avatar sametmax commented on June 13, 2024

That would defeat the entire purpose or 0bin as the server would need to
hold the decryption key to redirect from the short url to the full url.

Le 21/12/2015 10:19, timss a écrit :

In the event that you're hosting 0bin yourself, having a native URL
shortener on that domain would be preferably in certain scenarios.
Maybe it could come in the form of an additional URL rewrite/route?


Reply to this email directly or view it on GitHub
https://github.com/sametmax/0bin/issues/25#issuecomment-166243610.

from 0bin.

timss avatar timss commented on June 13, 2024

Good point, hadn't thought about that. Please excuse my short sightedness.

from 0bin.

ksamuel avatar ksamuel commented on June 13, 2024

The short url feature has been removed in V2, so I'm closing this.

from 0bin.

Related Issues (20)

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.