Bitcoin Forum
May 27, 2024, 05:43:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Poll
Question: JavaScript event listener or PHP API?
JavaScript
PHP
Both work equally well

Pages: [1]
  Print  
Author Topic: How do you want to fetch your shorted urls, JavaScript or PHP?  (Read 125 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
Kema (OP)
Full Member
***
Offline Offline

Activity: 630
Merit: 100



View Profile WWW
January 23, 2019, 09:43:29 PM
Last edit: January 24, 2019, 06:36:26 AM by Kema
 #1

I’m currently in the final stages of writing the code for a shortener API/script.
URL Shortener APIs are most often used on the sever side and PHP is the most common language.
As I was toying with different options, I realized I could do it with a common script tag including a .js file and you’d get the url by using a common listener.
Security wise, it wouldn’t matter much the public key is only good for one thing, to GET the shortened url.

As it stands today, I’ll probably go for the server side solution. But if it turns out a lot of you want a JavaScript implementation, I might just add this option as well.
The benefit is quite obvious, using JavaScript anyone can get the short link from any page without having access to the server side code. And no coding skills are required...

I haven’t worked out all the details since this is such an odd idea, but I don’t see any immediate  impossible obstacles.

Feel free to comment and make suggestions yourself if you feel lik it.

Don't just short links, ezLink them!
Kema (OP)
Full Member
***
Offline Offline

Activity: 630
Merit: 100



View Profile WWW
January 25, 2019, 04:13:18 AM
 #2

*Bump*
I’m curious to hear what you have to say on this.
If no one cares, what would be the point of putting in the extra work?

Don't just short links, ezLink them!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!