Re: how to block a user downloading a file?
| From: | jabber@raditha.com | Date: | Thu, 28 Aug 2003 09:55:07 +0000 |
| Subject: | Re: how to block a user downloading a file? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161021@lists.php.net to get a copy of this message | ||
Hello,
Since this is a cab file, i don't think you will be able to modify it. Why don't you put the cabs outside the document root? there was a discussion on doing something similar just this week on this very list.
If you insist on having the stuff on the document root you can use .htaccess files with the appropriate allow / deny directives. but i have a hunch you may be on windows :-)
best regards
raditha
Tassos T wrote:
fatih olcer wrote:-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.hi, how to block a user downloading a file?hi, you have to use this code : <? header ("Location: http://localhost"); ?>eg : when a user enter an address like http://localhost/downloads/testfile.cabi want to forward him to an other address likehttp://localhosti'm PHP newbie thanks for help.