RE: [PHP-WIN] Download System
| From: | Ross Fleming | Date: | Fri, 09 Nov 2001 12:11:18 +0000 |
| Subject: | RE: [PHP-WIN] Download System | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10316@lists.php.net to get a copy of this message | ||
$HTTP_REFERER holds the address that the browser was referred from. This is
an apache variable that PHP has access to.
Be aware though, that this variable should be set by the users browser, and
not all browsers do that...
Ross
-----Original Message-----
From: GK [mailto:great_kent@yahoo.com]
Sent: 09 November 2001 11:57
To: php-windows@lists.php.net
Subject: [PHP-WIN] Download System
Hello guys,
I'm running PHP on Apache on a Linux system. I would like to check where the
requests come from before allowing users to download a particular file. For
example, if the request comes from http://abc.domain.com/ then
allow the
user to download the file, else the user cannot access the file. I wonder if
it can be achieved by PHP?
Thanking you in advance.
Kent
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net