Hide Filepath provides a way to hide absolute paths to files on the page source, even if your Drupal instance is using the Public download method.
It especially comes in handy if you want users to be prompted to login first before viewing or downloading a file.
Note: This is not a security module. It's only "security through obscurity". If a direct file-path is known, it is still accessible.
Also, this module currently only supports file fields attached to the Node entity.
Video Demo
For a quick visual overview and demo, check out https://vimeo.com/63399648
Install
- Download and place the module into your preferred module directory
- Enable.
- check the Hide Filepath checkbox on the file field settings form (each file field must be set)
Configure
When attempting to access a file, this module provides configuration options for anonymous and authenticated users.
Anonymous user options:
- Access Denied
- Page Not Found
- Login challenge
- Custom Hook
- Allow normal access
Authenticated user options:
- Access Denied
- Page Not Found
- Custom Hook
- Allow normal access
After installation, the default values are set as:
Anonymous user = Login challenge
Authenticate user = Allow normal access
Project information
- Project categories: Administration tools, Content editing experience, Site structure
12 sites report using this module
- Created by eriknewby on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.



