Re: set different .htaccess rules

From: Date: Fri, 16 Jul 2010 03:36:52 +0000
Subject: Re: set different .htaccess rules
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-306935@lists.php.net to get a copy of this message
i would use a single point of entry to solve this problem 1. keep the files outside your doc root 2. in the php file files.php check for an authorized user, if so allow the user to download the file the path http://site.com/files/we23h4hk234hjksdjrjkl23jfasdf will actually be http://site.com/files.php?file=we23h4hk234hjksdjrjkl23jfasdf if you hav access to httpd.conf (i am not sure if .htaccss works) u can set the non php extensions to be executed by the php interpreter and check for authorization (the way rapidshare works)

« previous php.general (#306935) next »