Can I require purchase code to access help files which are html format?

Does anyone have a quick solution for this available?
Or where do I go to get informed and start implementing one.

Thinking of something simple like an html form where the person inserts their purchase code and then the page redirects to the help page