Re: Blocking the direct download of a file

From: Date: Mon, 07 May 2007 17:45:03 +0000
Subject: Re: Blocking the direct download of a file
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-254506@lists.php.net to get a copy of this message
Jon Anderson wrote:
Greg Donald wrote:
There will be legitimate requests that will fail since not all browsers send a referer.
How many browsers out there that support the Java plug-in will not support referrers? Besides, the simple solution to that problem is just check for a non-existant referrer. If the browser doesn't support it, then it works anyway.
It's not a question of support, it's a question of something stripping it out before the request hits your server. This could be the browser, or a proxy, or pretty much anything else the request goes through. The "solution", as you rightly point out, is to simply allow it if there is no referrer. -Stut

« previous php.general (#254506) next »