OK, I confess I did not understand your original intent.
Yes, there are always ways to get what you want, like a background image, or a video that does not have a "save" option.
I find that if you need to protect code, it is usually code for a company's app, or you want to hide your secrets (big deal). In case of a company app, password protect it; if your secrets are so wonderful, share them.
In my retirement years, I like to share what I have learned. When I first started out (ancient times) we had source code in punched cards, when we moved into the PC era, most programs were copy-protected because piracy was a huge issue. These days, with open source, live and let live. Share...