You want some kind of DRM to protect your content.
You'll have to encrypt your content and use some central control system to grant access, deny access or revoke access. Most options mostly "outsource" the control over the content. Please check if you don't simply throw away security.
DRM is however incompatible with open source. Once unencrypted it can be copied and used anywhere. Open Source programms can be altered to create a copy to disk (or any other place).
You might want to search for TCPA, trusted computing and similar sources to view better explanations of the risks involved. You'll run into the same problems.
http://www.againsttcpa.com/