LifterLMS Quiz Grading: Attempts, Reviews, Results and Resets
How LifterLMS records quiz attempts, which attempt counts, how to manually grade answers with partial credit, what students see on the results…
Read articleWorksheets, slide decks, templates, checklists, audio files and source files are often what students value most in a course. They are also the part of a course most likely to leak, because a file link is easy to share.
This tutorial shows how to add downloads to LifterLMS lessons, how to keep those files limited to enrolled students, and how to organize resources so students can find them again later. It is written for course creators and the developers who support them, and was checked against LifterLMS 10.3.
One thing to know up front: LifterLMS has no separate "downloads" field on a lesson. You add files to the lesson content with ordinary WordPress blocks, and LifterLMS's media protection decides who may open them. That is a simple and flexible approach once you know how the two parts fit together.
A lesson is a WordPress post with restricted content. Anything you put in the lesson body, including links and download buttons, is only shown to students who can access the lesson. So the lesson already hides the link from visitors who are not enrolled.
What the lesson does not hide is the file itself. On a standard WordPress site, an uploaded PDF sits at a public address in wp-content/uploads. Anyone who gets the link, from a shared email, a forum post or a browser history, can download it without logging in. That is why you need the second part, media protection, for anything you charge for.
The LifterLMS documentation on lesson downloads mentions two hosting options: your own media library, or an external service such as Dropbox or Google Drive. The table below compares them.
| Where the file lives | Who can open it | Good for |
|---|---|---|
| Media library, unprotected | Anyone with the link | Free lead magnets, public samples |
| Media library, protected by LifterLMS | Students enrolled in the chosen course or membership, plus admins and editors of that course | Paid course materials |
| Dropbox, Google Drive and similar | Depends on the service's sharing setting; "anyone with the link" is public | Very large files, files you update often |
| Video or audio host | Depends on the host's privacy settings | Media that is streamed rather than downloaded |
The File block shows a download button and, for PDFs, can embed a preview. If you use a page builder, its button or download widget works the same way, as long as it links to a file in your media library.
Name files for the student, not for yourself. "module-3-pricing-calculator.xlsx" survives in someone's downloads folder; "final_v7_USE_THIS.xlsx" does not.
LifterLMS media protection is part of the free core plugin. A protected file is moved to a protected folder, gets a new URL served through WordPress, and is only sent to people allowed to see it: by default, administrators and LMS Managers, the person who uploaded it, users who can edit the course or membership, and students enrolled in that course or membership. Everyone else gets a "File not found" response.
You protect a file in one of two places:
Two rules make this reliable:
Protection is one-way. There is no unprotect button, so keep public files, such as a free sample chapter, unprotected from the start.
Whether protection really blocks direct access also depends on your web server. On Nginx the protected folder needs a server rule. Our full guide to protecting course files in LifterLMS covers server setup, signed URLs for apps and every edge case. Read it before you rely on protection for valuable files.
A lesson marked Free Lesson can be viewed by anyone, without enrolling. A protected file inside it is still protected: a visitor sees the download button but gets "File not found" when they click it. That is usually confusing rather than helpful.
So decide per file:
Students come back for files weeks after finishing a lesson. A clear structure saves you support emails.
Best for worksheets tied to a single lesson. Put the download next to the instructions, and repeat the most important ones in a short "Resources" list at the bottom of the lesson.
Add a lesson called "Course resources" at the start or end of the course and list every download, grouped by module. Students find it from the syllabus. It counts as a lesson for progress, so either keep it as a genuine first step ("download your workbook before you start") or accept that students mark it complete.
For a membership with many courses, a single page listing every download works well. Restrict the page to the membership with the membership restriction settings in the page editor, and protect each file to the membership. Our guide to restricting pages and posts in LifterLMS explains the page restriction settings.
If the list of files is long, a small shortcode can build it for you. This one lists every file uploaded to the current lesson, using the URLs WordPress provides, which point to the protected address for protected files:
<?php
/**
* Plugin Name: LLMSX Lesson Files
* Usage: place [llmsx_lesson_files] in a lesson.
*/
add_shortcode( 'llmsx_lesson_files', function () {
$post_id = get_the_ID();
if ( ! $post_id || 'lesson' !== get_post_type( $post_id ) ) {
return '';
}
$files = get_children(
array(
'post_parent' => $post_id,
'post_type' => 'attachment',
'post_mime_type' => array( 'application', 'text', 'audio' ),
'orderby' => 'title',
'order' => 'ASC',
)
);
if ( ! $files ) {
return '';
}
$items = array();
foreach ( $files as $file ) {
$items[] = sprintf(
'<li><a href="%s" download>%s</a></li>',
esc_url( wp_get_attachment_url( $file->ID ) ),
esc_html( get_the_title( $file ) )
);
}
return '<h3>Lesson resources</h3><ul class="llmsx-lesson-files">' . implode( '', $items ) . '</ul>';
} );
It only finds files that were uploaded while editing that lesson, because that is what sets the file's parent. Files picked from the existing library are not attached. Set each file's title in the media library, since that is the link text.
No. You add downloads to the lesson content with the File block or links, and use media protection to restrict the files to enrolled students.
Not protected files. Access is checked on every request, so once a student is no longer enrolled, the protected file stops downloading. Files they already saved stay on their device, of course.
Student uploads are handled by the paid Assignments add-on and the upload question type in the Advanced Quizzes add-on, and those files are protected automatically. See our LifterLMS assignments guide.
Not completely; once a file is on someone's computer it can be shared. Watermarking each PDF with the student's name discourages it, but that needs a third-party tool or custom development.
Audit your existing courses: list every file linked from a lesson, check whether it is protected, and check it is protected to the right course or membership. Fix the server rule if you are on Nginx. Then choose one way of organizing resources and apply it consistently.
If you need watermarked PDFs, download tracking, or a searchable resource library across many courses, our LifterLMS development team can build it on top of core media protection. Tell us about your course materials and we will recommend the simplest secure setup.
How LifterLMS records quiz attempts, which attempt counts, how to manually grade answers with partial credit, what students see on the results…
Read article
A practical plan for organizing LifterLMS courses with categories, tags, tracks and difficulty levels: what each one is for, where it shows up, how…
Read article
Every LifterLMS quiz question type explained: what it measures, how it is graded, the pitfalls of each, and which ones need the Advanced Quizzes…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.