Template edits only hide the link and would not prevent someone from downloading the file if for example the link was posted shared somewhere. As another example they can simply go through the file ID's if they wanted to go on fishing expedition.
As Anișor already mentioned there is permissions for this. Go into ACP >permissions tab >> Under "Global permissions" click the Groups permission link. On next page select guests and determine which role is assigned, repeat for bots*. By default it should be the guest role and bot role.
Once you know what roles go back to Permissions tab and under "Permissions roles" heading click User roles link, edit the appropriate role on the next page. Set "can download files" to never.
---------------------
*Whenever you restrict access to guests the bots should be restricted too. A)Someone can spoof user agent for bot and B)Search engines don't like being served content not available to the public. It's an easy way to get a site penalized, research cloaking. You can give access to guests and restrict bots but not the other way around.
As Anișor already mentioned there is permissions for this. Go into ACP >permissions tab >> Under "Global permissions" click the Groups permission link. On next page select guests and determine which role is assigned, repeat for bots*. By default it should be the guest role and bot role.
Once you know what roles go back to Permissions tab and under "Permissions roles" heading click User roles link, edit the appropriate role on the next page. Set "can download files" to never.
---------------------
Optionally you can do it with forum permissions/roles but in that case only if you wanted to restrict downloads to certain forums.I know there is a general admin option to block all attachments from being viewed but this is not what I want because it stops important images from being shown.
*Whenever you restrict access to guests the bots should be restricted too. A)Someone can spoof user agent for bot and B)Search engines don't like being served content not available to the public. It's an easy way to get a site penalized, research cloaking. You can give access to guests and restrict bots but not the other way around.
Statistics: Posted by thecoalman — Tue Sep 03, 2024 4:15 pm