In the end, you cannot protect it completely. Even when using a LMS it can be breached. So depending on your needs, you define whats needed for security. I completely depend on the LMS. If i use any other webbased delivery, i dont add extra security, cause i know its tough to get secure.
In my Flash days i obsfucated files to protect against decompiling, but thats ancient history 😉