Cleaning up URL's to Share and Protect Privacy

GeekThis remains completely ad-free with zero trackers for your convenience and privacy. If you would like to support the site, please consider giving a small contribution at Buy Me a Coffee.

Cleaning up URL’s to send to friends, tweet about, or share on various networking sites is a great idea. Below I will show you how to clean up some popular website URL’s. Before that though why should you clean up your URL’s? Well they can contain information you don’t want to share with other people. For instance Amazon keeps search terms saved in the URL when you visit product pages.


As you can clearly see the last URL parameter is your search terms. This could potentially be something you don’t want to share with others when linking people to products.

In the above URL you will need to grab the ASIN product number. In this case it is 0000000000. It can also be found on the product page under the “Product Details” section.

This will go directly to the product page. If you are part of the Amazon Associates Program, you can append “?tag=geekthis-20” at the end of the URL, but of course using your own associates tag so you get the income.

To shorten a link to a category, we start out with the full URL of a category we navigated to using our browser.

We will see the node parameter. We copy and paste this so the new URL looks like the following. You may have to change the ampersand to a question mark if it isn’t already.

After you do a search on Google, the URL will look something similar to this.

All of that is junk if you are linking someone to this search. You need to find the query you performed, in this case it is “I love google”, and it is found right after &q=

The new URL for Google search results will be as follows.

Or if you are linking to a person that has Google Instant you can shorten it even more

And then it is even possible to remove the forward slash before the pound sign if you are on a desktop computer or laptop. Mobile browsers sometimes have issues with this type of URL.

But that’s not the shortest yet, Google has a shorter domain, so all the above URLs can use instead of

Shorter YouTube URL’s

To shorten a YouTube search URL we find the term we want to search for, in this case “I love youtube”. If we don’t shorten the URL we are left with this.

If we do shorten it we get this.

You drop everything after the ?search_query value, and change that parameter name to ?q.

To shorten the video URL, you have a few options, the easiest and shortest is to go to the “Share” tab on YouTube and copy that URL. It looks similar to

If you don’t see a “Share” button for some reason, or want to manually type our the URL starting from the video page you are on you need to get the ?v= value from the URL.

Then just append that value to and you have your shortened URL.

For shorter Profile URL’s you just have to remove /user/ from the URL, and all other parameters besides the username.



Those are a few ways to shorten URL’s. This can be done with almost every website. You just need to find out which parameters in the URL are required, and then delete everything else.

Related Posts

Nginx Logging Privacy and Security

Learn how to stop Nginx from loggin IP address, sensitive URLs, authorization URLs, and query strings to help protect your users privacy and their security.

Bypass Google Analytics Opt-Out Extension

Easily bypass Google Analytics Opt-Out browser extension with a few lines of JavaScript and start tracking all users again.

Disable Google Analytics from Tracking You

Learn how to disable, block, and opt-out of Google Analytics to stop sending information about the sites you visit to Google.

PHP Calculate Time for Hashing Algorithms

How to calculate the time required for various hashing algorithms inside of PHP.