• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Petersen Media Group

Petersen Media Group

We help you spend less time ensuring your site is there, and more time making it profitable.

  • Home
  • About Us
  • FAQs
    • WordPress Hosting
    • Hosting Services
  • Benefits
  • Services
    • Choose your plan

Archives for April 2015

April 10, 2015

Setting up YOURLS for Your Shortlinks to Stop Using Bitly

Screen Shot 2015-04-09 at 10.38.54 AMIt was recently uncovered that Bitly is possibly monetarily gaining from your affiliate shortlinks with the affiliate tool, Viglink. What it comes down to, again, like it has for Disqus and many services like it is who owns your content? You don’t host your links, Bitly does. They can manipulate and track and, yes, monetize your data.

So as I read these articles a couple of days ago while our son was being way too loud in the bathtub, the camel’s back got downright broken. I’ve tried to setup YOURLS twice before and given up. I don’t know if I’m that much smarter now or if I was that much more driven, but I got it setup today in a couple of hours while doing client and social media stuff.

What to do

Here’s what I did.

I went to https://github.com/YOURLS/YOURLS and downloaded the .zip file locally and followed the directions here: http://yourls.org (that link is on the Github page)

I use ServerPilot on my DigitalOcean droplet, so I created a new app for the domain I wanted to use shortening on: jdub.co

The next step was to configure the file in /user like it says to in the document and add all of the database and domain info that was just setup in ServerPilot.

Upload the entire contents of the .zip file to the public folder or subfolder you choose on the server and then visit YOURLSDOMAIN/admin to install it and login. For this part, it’s very much like WordPress. It connects to the database you just created on YOUR server, so you own the data, and from this admin, you can add plugins for additional features.

I’ve installed the following plugins:

  • https://github.com/YOURLS/random-keywords
  • https://github.com/YOURLS/dont-log-bots
  • https://github.com/katzwebservices/YOURLS-Link-Anonymizer
  • https://github.com/miconda/yourls/tree/master/plugins/popular-clicks

Now for the best part: connecting it to services like Tweetbot as the link shortener. In the admin, go to Tools. Look for the Secure passwordless API call. See the token? You need to insert that into this line of code, which is the URL to use in Tweetbot:

http://YOURDOMAIN.COM/yourls-api.php?signature=SECRETTOKEN&format=simple&action=shorturl&url=%@

Replace SECRETTOKEN with that token string and you’re all set.

Happy YOURLS-ing!

Technology

Primary Sidebar

Recent Posts

  • Change Genesis .site-title H1 Wrap on the Homepage
  • The Year of 2017 Goals for Petersen Media Group
  • Forever to Finish, Gone in the Blink of an Eye: 2016
  • Add Genesis Custom Post Type Archive Settings
  • Use Minified Stylesheet with Genesis Themes with Front-Page Customizer Backgrounds

Recent Comments

  • Mike Hale on The Year of 2017 Goals for Petersen Media Group
  • Little Shiva on The Year of 2017 Goals for Petersen Media Group
  • Luke Cavanagh on A Response to the WordPress Customizer Expansion: Removal
  • Chris Johnson on Why Partnerships Often Don’t Sail
  • divakara ganesh on Two Things You Need to Do to Your Genesis 2.2 Theme

Archives

  • January 2017
  • August 2016
  • May 2016
  • October 2015
  • September 2015
  • August 2015
  • June 2015
  • April 2015
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • May 2014
  • April 2014
  • February 2014
  • January 2014
  • November 2013
  • September 2013
  • July 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • January 2000

Categories

  • Business Tips
  • Genesis Framework
  • Investments in You
  • Products
  • Technology
  • Uncategorized
  • WordCamp Slide
  • WordPress Tips

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Footer

Petersen Media Group was founded on the idea that good work, transparent and honest communication, and radical generosity are the keys to success in business and life.

The WordPress community has shown up over and over to prove this to be true.

We look forward to being entrusted with your business.

Navigation

  • Home
  • About Us
  • Blog
  • Choose Your Plan
  • FAQs
  • Contact
  • Disclaimer

This site is independently owned. It is not sponsored by StudioPress, WP Engine, WordPress, or Automattic Inc.

Theme and various assets used with permission from SEOThemes and GenesisSiteCare.

Copyright © 2019 · Petersen Media Group