Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Unit Attachments Links Protection
Tagged: attachments, links, protection, units
- This topic has 15 replies, 3 voices, and was last updated 4 years, 5 months ago by Diana.
-
AuthorPosts
-
June 11, 2020 at 12:56 am #267337MssmLccs9-ParticipantHello, In the units attachments, students can copy the links of the attachments and share it everywhere, how can I protect those links? Thanks,June 11, 2020 at 2:10 am #267338MssmLccs9-ParticipantI tried, this code on WPLMS customizer plugin, but it broke the plugin: apply_filters('wplms_unit_attachments',1,$id); add_filter('wplms_unit_attachments',function($flag,$id){ if( !is_user_logged_in() ){ $flag = 0; } return $flag; }10,2);June 11, 2020 at 8:03 am #267422JacksonBlockedHello, You are talking, Which type of unit attachment , Are you talking about course video protect not allowing them to get the video link and watch it outside the unit or download it. If yes then Those videos can be downloaded,to secure your video content please use vimeo or wistia and embed your video from there. Thanks,June 11, 2020 at 5:33 pm #267586MssmLccs9-ParticipantHello, Thank you for replaying back to me, no I meant the attachments we upload through media like photos, documents, notes, slides, those that you add by pressing on "Add attachments" in unit settings, and they have download button beside it. See attached screenshot https://prnt.sc/sy1vllJune 12, 2020 at 7:19 am #267681DianaParticipantThis reply has been marked as private.June 12, 2020 at 3:02 pm #267822MssmLccs9-ParticipantI don't want to remove the download option, I want to protect the link, I don't want them to right click on the attachments --> copy the link --> share it outside our platform, it doesn't make sense for paid courses, we need protection.June 13, 2020 at 11:52 am #267981DianaParticipantFor that we have a setting which you can enable from wp-admin > WPLMS > Course Manager > Disable the right click So nobody will be able to right click and hence they are not able to access the linkJune 13, 2020 at 4:59 pm #268048MssmLccs9-ParticipantI knew you are going to reply with this answer, LOL I know about the right click function, but if the unit is free I can't protect it. Despite, they can take the link from the download history in their browser. The concept is, if in any case the student got the link, I don't want him to paste it somewhere else and get the attachment. Like if he paste it, without logging in, he would be prompt to login for example.June 15, 2020 at 11:21 am #268283DianaParticipantThis reply has been marked as private.June 16, 2020 at 1:06 am #268425MssmLccs9-ParticipantDear Diana, Thank you so much for replying back, may I ask, where do I put this code? add_filter('wplms_unit_attachments','wplms_unit_attachments_remove',10,2); function wplms_unit_attachments_remove($flag,$id){ if( !is_user_logged_in() ){ $flag = 0; } return $flag; }June 16, 2020 at 6:42 am #268458DianaParticipantIn wp-admin > Plugins > editor > select wplms customizer plugin > wplms-customizer.phpJune 16, 2020 at 8:54 pm #268673MssmLccs9-ParticipantSince the moment I have put the code above, in my first post, the customizer plugin got broken, and now when I try to install it, I get this message: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature So, I'm not able to put the code you have given me in the last reply.June 16, 2020 at 10:44 pm #268682MssmLccs9-ParticipantI'm sorry, ignore the last message, I was able to upload the plugin successfully, however the code didn't work.June 17, 2020 at 10:50 am #268827DianaParticipantThis is what I can do using custom code. Otherwise you can try another method http://somup.com/cY1b6dQ0aU The code is working fine as you can see, not accessible to non logged in usersJune 17, 2020 at 3:30 pm #268930MssmLccs9-ParticipantSo, I see what you did, the attachments are hidden for non logged in users, which is good. Yet the link still works for non logged in users.
-
AuthorPosts
- The topic ‘Unit Attachments Links Protection’ is closed to new replies.