$Id: README.TXT,v 1.2.2.1 2006/03/26 15:08:08 elmuerte Exp $ Description ----------- Drupal has an aweful way of handling file requests through the private method. This module fixes that, it implements most of the HTTP features. Things like caching and resuming are supported. This module also as a anti-leech feature which should prevent stealing of files on remote sites. So this module can also be an addition when using the public method. The user will be redirected to the node to which the file was associated. Currently the anti-leech only checks the referer to be within the configured range. Empty referers are currently still allowed, but this might change in a future release. A special mode has been added for in case of images (only JPEG, PNG and GIF). Either a watermark can be added or the image can be subsituted with an other image. In case of watermarking the watermark images has to be a PNG, it's best to make use of the PNG alpha channels for a nicer result. Requirements ------------ This module requires Drupal 4.6 or a later version. GD Lib is required for when using watermarking for images. Installation ------------ The normal installation method applies. In order to increase performance you can add the following lines to the .htaccess file in Drupal's base directory. This only works when mod_rewrite is installed. # For public wrapping RewriteCond %{REQUEST_FILENAME} -f RewriteRule files/(.*)$ modules/filerequest/throttle.php?file=$1 [L] # For private wrapping RewriteRule system/files modules/filerequest/throttle.php [L] This is very important, you need to place those lines before the following block: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] The best place is probably after RewriteBase line. For this to work, you must create the file throttle.config.php in the module directory, you can get the content for this file through the drupal administer interface. Everytime you change the config in the administration interface you will need to update the throttle.config.php file. Note: if you had a filerequest module installed from before march 26, 2006 you will need to update the throttle.config.php if you were using this feature. Configuration ------------- filerequest can be configured at administer -> settings -> filerequest. Authors ------- * Michiel Hendriks