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 6038773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:16:15+00:00 2026-05-23T06:16:15+00:00

Signed URLs are paths like below, is that the correct name for those? http://mydomain.tld/<randomhash>.<extension>

  • 0

Signed URLs are paths like below, is that the correct name for those?

    http://mydomain.tld/<randomhash>.<extension>

They mostly protect access to an image and are often only available a certain amount of time. If you know the path and filename, you get access.
This seems to be acceptable user access restriction for many webmail and other web application and it seems to be a common pattern.

Alternatively you could serve files or images through a script that checks access for each request, which allows tracking and user credential check on each access as described in here: Serve image with PHP script vs direct loading an image

So the trade of between the two would be, and here I would like to know if that is complete or if there is more to consider:

  • signed urls need to be generated, served, discarded after t
  • the longer t the more insecure
  • the shorter the path the more insecure
  • even when served via https sniffing the url gives anyone access during timeout of t
  • access after generation is

While serving through php has the issues:

  • each time accessed generating load on script engine checking user and serving image, not allowing web server a direct file path access

What would be the better approach in general? If that cannot be said, which other perspectives/issues are to be considered?

  • 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-23T06:16:16+00:00Added an answer on May 23, 2026 at 6:16 am

    Using PHP (or any other language) is a good option here with no much overhead. What I would do:

    • using Nginx or other webserver with X-forward capabilities (see e.g. mod_xsendfile on Apache)
    • using the hash in GET parameter not be able to sniffed on a https channel (e.g.: http://mydomain.tld/image?hash=<randomhash>)
    • on page load PHP can check if the given hash is right (even without a database with a simple file_exists call to the <hash>.png/jpeg/etc.) and give back the required headers with the X-forwarded image
    • delete/remove unneeded images from protected folder after duration of time
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are C++ enums signed or unsigned? And by extension is it safe to validate
Given that signed and unsigned ints use the same registers, etc., and just interpret
Say I have the classic 4-byte signed integer, and I want something like print
I've signed up to one of those affiliate sites to help drive traffic to
Depending on if a user is signed in or not, I'd like to print
I'm looking at a signed Applet that is heavily called from JavaScript. Obviously, the
I have a basic Spring MVC controller that looks like this: @Controller public void
I have a signed jar bundled in an ear that searches for a configuration
I read that self-signed certificates suffer from performance issues (for example, here ) but
If I have: signed char * p; and I do a comparison: if (

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.