• Chris
  • Chris's Avatar
  • OFFLINE
  • New Member
  • Posts: 6

Securing File Attachment Download 2 weeks 3 hours ago #164032

Hi, is there a way of 'securing' the file attachment download link that K2 has for dealing with file attachments?

Basically I don't want files on a K2 item being leached and bandwidth consumed by bots on a freely downloadable file, looking maybe for including ReCaptcha or similar.

Thanks
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14346

Securing File Attachment Download 1 week 6 days ago #164040

Hello Chris,

Recaptcha is already being used in the comment forms.
You could implement a simple JS scirpt to show hide the download link in your overrides.
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Chris
  • Chris's Avatar
  • OFFLINE
  • New Member
  • Posts: 6

Securing File Attachment Download 1 week 6 days ago #164051

Thanks Krikor,

Next question of course is any examples of how to implement that? :)
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14346

Securing File Attachment Download 1 week 5 days ago #164059

You can use this as a starting point
medium.com/@kerrywall/building-a-simple-quiz-with-jquery-eb76c6062806
and use show(), hide() or toggle() in order to toggle the visibility of the link.
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
  • Chris
  • Chris's Avatar
  • OFFLINE
  • New Member
  • Posts: 6

Securing File Attachment Download 1 week 5 days ago #164062

Thanks again for your great support Krikor!
  • Krikor
  • Krikor's Avatar
  • OFFLINE
  • Moderator
  • Posts: 14346

Securing File Attachment Download 1 week 4 days ago #164106

You 're welcome Chris :)
IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/
Moderators: william white

Who Is Online

Total users online: 22 Members and 4253 Guests Online
Beppe De Lorenzis Christophe BERTRAND CloudByte Davy Donnell Holness Fairtech Francesco Gary Hansen Goble002 Inter-Ibex Jos Larry Mitchell Mohammed Refat Reymond Startprogram Tomáš Václ Uzi YODAstudio michael razen site william white
Legend ::   Site Administrator Global Moderator Moderator Banned User Guest
  • Total Messages: 137434 | Total Subjects: 36267
  • Total Sections: 6 | Total Categories: 32
  • Today Open: 6 | Yesterday Open: 3
  • Today Total Answer: 8 | Yesterday Total Answer: 22
Powered by Kunena Forum