i have a file upload field type in my content type. so user can upload PDF file in that. i want to make password security for downloading the PDF. Can anyone help on this?
Thanks in Advanced.
There are two methods to ensure security of your files:
1) You can choose the "Private downloads" method in admin/settings/file-system, and
Apache won't serve them directly, and Drupal will read them and serve them with a virtual path system/files.
Then you can set permissions for the files by using an access control module (content_access or nodeaccess or node_privacy_byrole or og) and restricting access to the posts where they were uploaded, so that only some user roles can see them.
Caveats:
2) You can use pdf using mpdf module. it offers the ability to password protect your files.