RE: [PHP] This, then that. [solved?]

From: Date: Sat, 20 Oct 2007 14:18:21 +0000
Subject: RE: [PHP] This, then that. [solved?]
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-263444@lists.php.net to get a copy of this message
At 1:45 PM -0700 10/19/07, Instruct ICC wrote:
Hi gang:
I think I found a solution. Here's the url: http://www.webbytedd.com/bbb/image-test1/ The point is that the image is only accessible via this script, is this correct?
I can access it without a script: http://www.webbytedd.com/bbb/image-test1/images/a.jpg
I think what you were seeing was a cached image.
It may be difficult to guess a.jpg even if I can guess /images but in the img tag, try src="display_image.php?id=anId" and in display_image.php, test if the user is authorized before displaying the image. Then a direct call to display_image.php?id=anId would still have a chance to authenticate the user.
The script (in production) would check to see if the user was logged in, so that's not a problem. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#263444) next »