Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
11 lines (6 loc) · 369 Bytes

File metadata and controls

11 lines (6 loc) · 369 Bytes

RestrictedAssets Plugin For Craft CMS

To use this plugin just make a link like below:

<a href="actions/RestrictedAssets/download/{{ asset.id }}">{{asset.title}}</a>

And it will check if the user is logged in or not, only then he or she can download the file.

and remember to create a .htaccess file in your source folder with the following line:

deny from all