Earning online is really a big issue for beginners, everyone really wants to earn more and more on internet but first thing you need to know is that you have to complete first step then you should go further for more. Today I am going to talk about making your own URL Shortener website and earn from this for free without any cost, but for this you need to get a free web hosting and a domain and you can get these in minutes I recommend you to register on hourb.com or 000webhost.com and get a free web hosting and domain for free of cost. And I hope you will not have any problem while registering on that website. And remember you can earn money from it as much as you share it with your friends so that if they short more URLs from your website and you will earn more from it. And you can also use your earned money to get web traffic from AdFly there are many features but today my goal is to share with you how to make URL Shortener.
How to Create Free URL Shortener and Earn Online
Now it’s time to make URL Shortener service for free all we need is to register on AdF.ly and after registration and confirmation just login and go to Tools > API Documentation and copy your key and uid from a long URL here in the screen shot below will guide you more.
After you copy key and uid just save them to safe place we need this info later. Now it’s time to create the URL Shortener. Just copy and paste the code into notepad and save it as index.php and upload it to your web hosting through ftp or whatever you like. If you don’t know how to make website and upload files to website then simply google it there are tons of tutorials about it even video tutorials. After pasting the code into notepad make sure you do some changes in it and then save it. The code is given below:
<title>Free URL Shortener Service</title>
<form action="" method="post">
Long URL: <input type="text" name="link" /> <input type="submit" name="submit" />
$link = $_POST['link'];$short = 'http://api.adf.ly/api.php?key=YOUR KEY&uid=YOUR UID&advert_type=int&domain=q.gs&url='.$link;
<a href="<?php echo $short; ?>" target="_blank">Your Short URL</a>
<a href="http://www.extremetechblog.com">Extreme Tech Blog</a>
- Change YOUR KEY with your AdFly key as we saved it first.
- Change YOUR UID with your AdFly uid, we also saved it.