Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 893649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:15:20+00:00 2026-05-15T14:15:20+00:00

I have been wondering how tiny url works. I would like to develop something

  • 0

I have been wondering how tiny url works.

I would like to develop something similar for my site, but as most people, I use GUIDs for ids. When an object is created, should I then generate a 10 character random string to use as public id, or is there a smarter approach?

Example of old url: http://www.mysite.com/default.aspx?userId={id}

Example of new url: http://www.mysite.com/pwzd4r9niy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:15:21+00:00Added an answer on May 15, 2026 at 2:15 pm

    You can use any kind of random string generator or GUID for this. I don’t think there is a much smarter approach. (Palantir offers a nice alternative though, hashing the incoming URL. )

    The rest is relatively straightforward: Keep a database table with IDs and target URLs; When a request comes in, look up the ID and do a header redirect to the target URL.

    More discussion in this blog post.

    There also are redirection services out there now that use words from a dictionary list to build a URL.

    Sadly, EvilURL is gone! It used to create “short” URLs like

    http://evilURL.com/donkey_porn-shotguns/cracking-virus-exploit
    

    that was the only URL redirection service really worthwhile. 🙂

    And, as a bit of trivia, http://to is the shortest redirection service (and, I think the shortest web URL) known to man.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been wondering about how people manage their strings if they are likely
I have been wondering about the reload() function in python, which seems like it
Something I have been wondering about properties for a while. When you are using
I have been wondering, what prevents the development of an efficient virtual machine like
I have been wondering if it is valid c++ if I return something from
I have been wondering for a while, after asking different people and without any
I have been wondering if there's a nicer, but concise way for splitting a
I have been wondering, what would be the better way to implement Locking/Disabling a
This is something I have been wondering about. Is it faster to have MySQL
I have been wondering how secure a codeigniter setup is. Because information like db

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.