Protecting downloads in Joomla – why the access level alone is not enough
Price lists only for dealers, documents only for club members, manuals only for customers: many Joomla websites have files that not everyone should see. Usually they go into an article that only logged-in users can see. That feels safe, but often it is not.
What the access level protects and what it does not
In every article you can set under Access who may see it, for example Registered. You create your own levels under Users → Access Levels.
But that only protects the page, not the file. A PDF that you uploaded through the media manager and linked in the article sits in the images folder and has a fixed address, such as https://your-website.com/images/price-list.pdf. That address works for anyone, logged in or not. Joomla is not even asked.
How such addresses get out
- A member forwards the link by email or messenger.
- The address appears in an old newsletter or a forum post.
- Search engines find the file because a link somewhere points to it, and show it in their results.
Once out, it can hardly be taken back. Renaming the file only helps until the new address does the rounds again.
What you can do with Joomla's own tools
- Check what is exposed. Open the address of a protected file in a private browser window in which you are not logged in. If the file loads, it is not protected.
- Lock the folder. If the files are in their own folder, you can block direct access through the web server, on an Apache server for example with a
.htaccessfile. Then, however, no logged-in member can get to the file either, because Joomla has no way of delivering it after login. - Do not upload sensitive files in the first place. What is truly confidential does not belong on a website, but in a protected cloud folder or a personal email.
For a few files that is enough. If you regularly offer documents to a closed group, you need something that sits between the visitor and the file.
Fileshelf makes it safe
That is why I developed Fileshelf. The files sit in a locked folder and only leave through Fileshelf, never through a direct address. Fileshelf checks on every download whether the visitor may have the file:
- Access by Joomla access level, optionally with an additional password per download or per category.
- A self-test checks that the folder really is locked.
- Every download is counted.
- If a file is locked, the visitor sees a padlock with the reason and a way forward instead of an error message.
Downloads are organised like articles: in categories, with tags and custom fields.
The Free version costs nothing and is complete. The Pro version also shows what is downloaded how often, and offers one-time links, time-limited downloads and limits per user group.
This article is also available in German.

Related extension
A question about this topic, or an idea for the next guide? Write to me.
Norbert Graup
One membership: all Pro versions, updates and personal support.














