How to setup your own shortlink service | FREE | YOURLS

How to setup your own shortlink service | FREE | YOURLS

16.Aug.2021

what's up guys my name is techn over
here for troubleshoot and today I've got
a super interesting video for you that
after the quick and easy setup is
actually a lot of fun to mess around
with what am I gonna show you today well
I'm gonna show you how to set up your
own short linking service much like
bitly or anything else like that I 
currently have it set up to s don t see
n o.co which is my website if we had
across to it you'll see there's nothing
here however if I were to add a forward
slash followed by a link such as my
account switcher discord a short link
you'll see that once we head there it
redirects us to another web page which
in this case is an invite to a discount
server if you didn't catch that s not TC
n o.co slash account switcher discord
and that takes us here so today I'm
gonna show you exactly how you do that
basically only need is a web host for
hosting web files as well as an SQL
database now of course I'm using a
hosting company to do this however
you're more than free to do it using
zamp or something like that if you want
to host it on your own server box what
project are we gonna be using well as a
few short linking services however I'll
be using the open-source URLs which also
has a github page over here both of
which will be linked down below this is
probably one of the most is simple to
install and use ones with some nice
analytics as well only need to do is
find this page at the very top head tube
installed slash upgrade once you're here
you'll find the exact steps that you
need to do to get started what do we
need to do to download it head across to
the github page for releases and we'll
be downloading one of these over here
this is one point seven point four lost
released September 22nd 2019 I'll hit
the download source code dot zip and
we'll have the file downloading we'll
open it up and for good measure I'll
extract it to my desktop I'll then close
out of the zip and open up our folder so
inside of here we have all of the main
files that we need for this as you can
see we've already finished step one step
two we need to copy a config sample to
config.php and we'll need to open it up
and fill in the required settings so
I'll go ahead and do that now user an
okapi config sample into config PH
beam as such I'll right click and edit
with notepad plus plus of course you can
use an editor of your choice
then we need to go ahead and fill in
some information here now of course the
information that I put in here I will
shortly be deleting after this tutorial
is complete because I already have my
own a short linking service so you'll
need to create yourself an SQL a
database and this program will do the
rest you basically just need to set up
an empty database with a username and
password and put the name in here as
well as the link to it here so we'll go
ahead and do that now so on my web
hosting
console page I have the ability to
create an sq of database and as you can
see I have all of my information here so
the actual name of the database etc etc
doesn't really matter we just need to
make sure that we copy and paste it
correctly so where it says database I'll
simply copy that head into notepad plus
plus and I'll place it over here where
it says your RLS DBA name paste it
inside of those inverted commas save
then we need the username well place
them there and we need the full control
password not just the read and write etc
etc we need to full control paste that
in and save it as well and the next my
hosting console requires me to hit add
before I can go ahead and get at the
actual server link so I'll copy the link
to the server and paste it in where it
says that localhost as such I'll go
ahead and save it again and the table
prefix doesn't really matter you can
leave it as is which only this time
around then we'll scroll down to where
it says site options URLs installation
at URL or lowercase no trailing slash at
the end we define it at SH Oh Darcy it
don't use the www Sh Oh Darcy in your
browser so basically we're setting up
where it goes to in my carny
configuration for s don t see and okay I
have it set up as such which is HTTP s
dot TC n Ocho though because I'm setting
up a second one I'll simply make it a
slash s as such so this is where our new
short linking service will be then you
can set the GMT offset I'm currently in
GMT negative to South Africa language
I'll leave as is
unique URLs are live as true URLs
private Aleve is true as well which
means the admin area will be protected
with the usernames and passwords as
defined below and this is an incredibly
important step if you're gonna have it
publicly visible to the Internet we'll
scroll down some more and we'll find
this over here
URLs cookie key a random secret hash
used to encrypt cookies you don't have
to remember it make it long and
complicated hint copy from URLs org
slash cookie if we go here it'll give us
a randomly generated string if we
refresh a couple of times you'll see
that this happens to refresh as well so
I'll go ahead and copy what's inside of
these inverted commas or you can simply
copy the entire line that beckons
notepad plus plus and replace it over
there save then we have usernames and
passwords Atlanta access the site
password
either in plain text or encrypted as
hashes read URLs org slash user password
for some more information so as you can
see once we set it up as such it'll go
ahead and encrypt a password
automatically in a one-way algorithm so
that it's completely safe to put it in
plain text here for now I'll have it as
TC and uh and I'll set the password to
troubleshoot I'll go ahead and save it
once I'm done with that and I'll scroll
down some more
you can set debugging to true or false
I'll leave it at false then the e URL
shortening method at 36 or 62 I have set
262 which generates mixed case keywords
as such and not just all lowercase
keywords so it would be s leticia no / -
this or wherever you decide to put it in
this case it'll be TC and o.co / s for
the short links there at the very bottom
we have some words over here that we can
go ahead and block out from these short
links meaning that these cannot be
included in the short links of course
here are some sample words and it's
probably the only time you'll see file
language on this channel anyways we'll
go ahead and save it and we can minimize
our Tovar notepad plus plus as well as
the github page giving us information on
the passwords all we need to do from
here is look back at this folder and the
page that were following so as you can
see we've finished step three step four
upload the unzipped files to your domain
in the public HTML or www folder and of
here we have these steps on creating a
new database which we've already done
and we just need a point I'll browse
through to the admin to folder so I'll
go ahead and do that now I'll open up
FileZilla inside of public HTML I've
made a new folder titled s which is what
I set it up to be and I'll go ahead and
drag and drop all of the files that we
just extracted and edited into this
folder now of course before you do this
if you want to change it from slash
admin you can change the folder name or
the admin over here to be whatever you
want but for now I'll leave it as this
triangle drop it across and wait for it
to upload once it's done we'll open up a
browser and we'll head across to that
side HTTP is TCN o.co slash s slash
admin and we'll see this page over here
asking us to install your RLS so before
we do this I'm going to go ahead and
open up my PHP myadmin just so you can
see exactly what happens to the database
opening it up over here you can see that
the database is completely empty with no
tables found inside of it so I'll hit
install your RLS and as you can see it's
created three tables inside of our
database so I'll go to the
administration page using this link
looking at our PHP myadmin if we go
ahead and refresh it you'll see that
there are now three tables and they
should mostly be empty except for
options which is where we save some
information on and URLs which contains
some sample ones so it will be required
to log in so remember TC at node and we
use the password troubleshoot if you'd
like to reset your password make sure to
change it inside of the options speaking
of which let's head across to FileZilla
analyst redownload that settings file so
we can see how the password has
encrypted I'll drag and drop config
across and go ahead and open it up with
notepad plus plus reload it scroll down
and as you can see the password has
changed from troubleshoot to PHP pass
followed by a bunch of random text so
it's nice and secure as you can see
we've got some sample URLs here short
URL o's eh so what exactly does this
mean well if I head across to TC n o.co
slash s / paste that in hit enter you'll
see that we're redirected to two O's @h
org if we go across two URLs you are
ELLs
it takes us across to the project page
of this short link if we visit the
install slash upgrade tab you can see
that we are based
we done with the fresh install tutorial
now there's a couple of cool things that
you can do from here of course at the
very top it says enter a URL you can go
ahead and enter a URL of your choice
here so enter google.com and we can give
it a customer short name so I'll just
name it ggl shorten the URL and we've
now created a short link as you can see
here's the little quick share link but
I'll just be copying it as such opening
up a new tab and handing across to it
and Boop were on Google super simple and
easy to do of course I left a blur at my
IP over here but we can also check out a
couple of things so if i refresh the
page you'll see that there is one click
on each of these links and there's a
little and analytics button next to it
clicking that button will take us to a
page where we can look at a graph for
some reason it's smooth warily so
apparently in this time frame there were
negative viewers and it went up although
this is just a visual glitch go by these
dots instead of the actual line and we
have the option for all time which is
also quite useful if we go ahead and
open up another short link of mine that
I've been using for quite a while which
is from my trusted tutorial oxide video
as you can see we have a short URL and a
long URL and this is probably my most
clicked short link with over 636 clicks
as well as 17 it direct referrals so
this is what the announced X page looks
like when there's a couple of people who
visited it and you can see the graph is
nice and populated comparing it these
two pages they look a little bit
different but I would assume that's
because these are slightly different
versions of the same program and if I
updated it it would look at something
similar either way that's basically it
for this tutorial if you'd like to see
how to set up and use the API for this
yes there is one and you can interact
with it from other web pages as well as
your own computer to help speed up your
workflow then you might want to
subscribe for that and look out for the
video in the future as you can see
here's the little API key that we'll be
using at some stage in the future
anyways that's about it thank you all
for watching I hope you found this video
useful and good luck with shortening
your links I'll see you all next time
ciao

 

 

google url shortener app,short link url google,shorten google formlink,linkreducergoogle,googleurlshortenereditlink,
url shortener zapier,google link shortener online,
pemendek url google,google short url,
google short url link,google url shortener free,
url shortener shopify,google form link short,tiny url google,zapier shorten url,short url link google,google url shortener link,short link linkedin,
google short link generator,google short url bitly,shopify short link,
google shortener online,google url shortener online free,

We are social