Is it possible to lock down a .pdf file (or even an .exe) to a particular IP address during a download???

So if someone wanted a certain file or program they could download it from my site and wouldn't be allowed to share or distriubute it. Without obtaining a release code or authorization from myself? Could the program limit the number of times it is shared or distributed from a certain IP address?

Just curious... I think this would be a cool tool to develop. Thanks!