RE: [PHP] protecting a dir
| From: | Matt Williams | Date: | Sat, 29 Jul 2000 08:31:26 +0000 |
| Subject: | RE: [PHP] protecting a dir | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8930@lists.php.net to get a copy of this message | ||
Hi Sarahana
You could use .htaccess to protect the directory. This would still let
scripts access the dir but no direct requests
Simply add
Order deny, allow
deny from all
in your .htaccess
M@
> -----Original Message-----
> From: sarahana [mailto:sarahana@scournepal.com]
> Sent: 28 July 2000 17:10
> To: php-general@lists.php.net
> Subject: [PHP] protecting a dir
>
>
> Hi,
> I have a problem: my webhost, unlike I thought, provides HTTP streaming,
> and not real streaming.. so I need to protect my real media files from
> being downloaded. Can I protect the whole directory via php, but allow
> access only through one particular script?
>
> Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>