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

Securing File Attachment Download 2 months 1 week 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: 14734

Securing File Attachment Download 2 months 1 week 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: 16

Securing File Attachment Download 2 months 1 week ago #164051

Thanks Krikor,

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

Securing File Attachment Download 2 months 1 week 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: 16

Securing File Attachment Download 2 months 1 week ago #164062

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

Securing File Attachment Download 2 months 6 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: 8 Members and 3681 Guests Online
František Kříž Glathe HOURQUEBIE Romain Kaposvar University Marian Wężycki Peter Mathews djsmooth5 piet
Legend ::   Site Administrator Global Moderator Moderator Banned User Guest
  • Total Messages: 138508 | Total Subjects: 36476
  • Total Sections: 6 | Total Categories: 32
  • Today Open: 4 | Yesterday Open: 3
  • Today Total Answer: 5 | Yesterday Total Answer: 31
Powered by Kunena Forum