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

  • Home
  • SEARCH
  • 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 8544603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:36:02+00:00 2026-06-11T12:36:02+00:00

I’ve seen several sites where the user-contributed image ends off with a string of

  • 0

I’ve seen several sites where the user-contributed image ends off with a string of seemingly random characters.

Example

http://farm2.staticflickr.com/1116/5136519916_f9b8699cdc_o.jpg

Question: Is there a real need to do this if the image filename starts off with the unique id of the photo. This id is taken off the row from the database table corresponding to this image. Following the example above, my guess will be that 5136519916 is the photo’s unique id, f9b8699cdc is the random string and o is the size of the image.

  • 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-06-11T12:36:03+00:00Added an answer on June 11, 2026 at 12:36 pm

    Theoretically, as long as filenames are unique there is no technical reason why you need to add such a randomized string. However, I suspect those strings are there for privacy concerns.

    Imagine if your filenames were simply the photo’s unique ID. A bot could systematically scan your entire site getting all the photos simply by incrementing by one. If your users are uploading photos but they don’t want everyone to be able to see them (such as with Facebook or private photos in Flickr) then this is a very insecure system. Adding this random string helps hide user’s content from unauthorized access by making links harder to guess. This is vaguely addressed by the “How Secure is ImageShack?” question on ImageShack’s FAQ.

    The combination of unique identifier + randomized element means both easy calculation of unique IDs (increment the identifier by 1) and easy addition of a random element (generate a string and append it to the ID). Much more efficient than computing a completely random but still unique identifier.

    Technically, a fully random filename would be more secure but even the addition of only three alphanumeric characters (a-zA-Z0-9), a la ImageShack, means that for each unique photo ID the filename could be one of any 52*52*52 = 238382 possibly filenames. All of a sudden, anyone scanning your site to find user’s photos isn’t having much luck.

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

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
i got an object with contents of html markup in it, for example: string
I need to clean up various Word 'smart' characters in user input, including but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
Specifically, suppose I start with the string string =hello \'i am \' me And

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.