Re: Please I need help it's very Urgent (Prevent un-authorized users to download document)
| From: | Leif K-Brooks | Date: | Mon, 16 Jun 2003 06:34:33 +0000 |
| Subject: | Re: Please I need help it's very Urgent (Prevent un-authorized users to download document) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151637@lists.php.net to get a copy of this message | ||
Mishari wrote:
Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear : http://www.myweb/data/data.pdf My problem is if any one get this URL or the path he can get the document without authorized. I need a way in which any one who try to get these document from the URL get a message to ask him to Login. tore them below the web root, and create a script which takes the name of the file being downloaded. If the user has correct access, it passthru()s the file. If not, it shows a login screen.-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.