File protect is a File field formatter, intended to protect file downloads, allowing to download only to
authenticated users. It works by replacing direct links to files on the web server to custom links
handled by the module itself, which permits handling this case (allowing download of file by registered
clients for the website). May also be complemented by a web server configuration to disallow direct
URL downloads.

I' ve not found anything similar on drupal contrib modules

http://drupal.org/sandbox/javier.alejandro.castro/1191828

Comments

alexreinhart’s picture

Status: Needs review » Postponed

Drupal core provides similar features. How does your module compare with this, and with the modules mentioned in this handbook page?

http://drupal.org/node/22240

Anonymous’s picture

My module has the feature to be configured by field. Core drupal allows setting private or public on ALL site. If you need to configure some files (by a content type) you have no way on drupal.

Also, other modules provides more configurability (i.e. private_upload allow the user to choose when each file uploaded is private or public). If you dont want to enable final users to configure that (want to do it globally) you cant. In my company i dont want any user to publish a "Release" node with an installer file wihtout putting it private (the file should only be downloadable by registered users!)

Hope it explains better the reason for creating this simple module.

alexreinhart’s picture

Well, if you set the core Drupal setting to "private", all users will still be able to download all files by default. It's up to modules to intercept this and add custom behavior. It seems to me you could implement your module's behavior using Drupal's private downloads and hook_file_download. You might also consider contributing your desired features to the file_access module rather than starting a completely separate module.

Anonymous’s picture

No problem. I can maintain my own private module just for my site. The implications of discussing features/code, etc with another project are not an alternative for me right now. Best regards!

sreynen’s picture

Status: Postponed » Closed (won't fix)

It sounds like javier.alejandr... no longer intends to make this a full project, so I'm closing it. Please re-open if this was a mistake.