LifterLMS Downloads: Adding Lesson Resources Securely

How to add worksheets, PDFs, templates and other downloads to LifterLMS lessons, keep them limited to enrolled students, organize a course resource library, and avoid the mistakes that leak paid files.

  • Add as a preferred source on Google
Illustration for “LifterLMS Downloads: Adding Lesson Resources Securely”

Worksheets, 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.

Where lesson downloads live in LifterLMS

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 livesWho can open itGood for
Media library, unprotectedAnyone with the linkFree lead magnets, public samples
Media library, protected by LifterLMSStudents enrolled in the chosen course or membership, plus admins and editors of that coursePaid course materials
Dropbox, Google Drive and similarDepends on the service's sharing setting; "anyone with the link" is publicVery large files, files you update often
Video or audio hostDepends on the host's privacy settingsMedia that is streamed rather than downloaded

Add a download to a lesson

  1. Open the lesson in the editor. From the course builder, use the lesson's edit link to open the full editor.
  2. Add a File block where the download belongs, ideally right next to the instruction that tells students to use it.
  3. Upload the file or choose it from the media library.
  4. Edit the link text so it describes the file: "Download the budgeting worksheet (PDF, 2 pages)" is clearer than the file name.
  5. Protect the file before you publish, as described in the next section.
  6. Update the lesson, then check it as a test student.

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.

Keep downloads limited to enrolled students

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:

  • In the block editor: select the File, Image, Audio or Video block, click the lock icon in the block toolbar (for a file it reads Protect file), and pick the course or membership in the Select Course or Membership dialog.
  • In the media library: open the file, find LifterLMS Media Protection:, choose a course or membership and save.

Two rules make this reliable:

  1. Protect first, then insert. Protecting a file moves it, and links you already pasted into lessons stop working. LifterLMS warns about this in the media library. If you protect afterwards, re-insert the file in each lesson.
  2. Protect to the widest product that should have it. If a worksheet is used in a course that is also part of a membership, protecting it to the course covers students enrolled in that course, including members who were auto-enrolled into it. Protecting it only to the membership would lock out students who bought the course on its own.

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.

Free lessons and preview content

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:

  • If the download is a teaser meant for everyone, leave it unprotected in the free lesson.
  • If it is for paying students, keep it out of free lessons and say "Enroll to get the workbook" instead.
  • If you want visitors to trade an email address for it, use your email marketing tool's opt-in form and deliver the file by email, not from a lesson.

Organize resources so students can find them again

Students come back for files weeks after finishing a lesson. A clear structure saves you support emails.

Option 1: files inside the lessons that use them

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.

Option 2: a resources lesson per course or section

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.

Option 3: a resource library page

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.

Large files, updates and download tracking

  • Large files. Protected files are sent through WordPress, which is slower and more demanding than a direct download. Course PDFs and spreadsheets are fine. For multi-gigabyte source files or raw video, a dedicated file host with expiring links is usually the better choice, and you link to it from the lesson.
  • Updating a file. Uploading a new version creates a new media item with a new URL, so update every lesson that links to it, and protect the new file. Keep a short changelog in the lesson ("Updated March: new tax rates") so returning students know to download again.
  • Tracking downloads. Core does not record who downloaded which file. If you need that, send a download event to your analytics tool, as described in our article on GA4 tracking for LifterLMS, or have a developer log downloads against the student.

Common mistakes with LifterLMS downloads

  • Relying on the lesson restriction alone. It hides the link, not the file.
  • Protecting files after inserting them, which breaks the existing links.
  • Protecting to the wrong product, so some legitimate students get "File not found".
  • Public cloud links in paid lessons. "Anyone with the link" means anyone.
  • Assuming protection works on Nginx without a server rule. Test the old direct file path while logged out.
  • Testing as an administrator. Admins can open every protected file. Use a student account and a logged-out browser.

Frequently asked questions

Does LifterLMS have a downloads section for each lesson?

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.

Can students download files after their access expires?

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.

Can I let students upload files instead?

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.

Can I stop enrolled students from sharing a downloaded PDF?

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.

What to do next

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.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day