1. A resource protection program for protecting resources to be processed on a computer comprising a memory with the program stored therein, the program causing the computer to implement: a preparatory function as a function for preparing a plurality of defined state transition histories and a plurality of defined actions, both of which are predefined and associated with each other, wherein each of the defined state transition histories defines a state transition history as a history of state transitions in the computer upon execution of predetermined access to a predetermined resource, each of the defined actions defines a process for controlling predetermined access to a predetermined resource so that the defined action can be executed upon transition from a defined state defining a state of the computer to a next defined state, and a real state transition history is a history of actual state transitions in the computer upon execution of real access as actual access to a real resource as an actual resource; a state transition function for making a transition of an actual state of the computer according to a defined state transition history; and an action execution function for executing, upon execution of the real access to the real resource, a defined action associated with a defined state transition history when there is the defined state transition history matching the real state transition history from among one or the plurality of defined actions, each defined to be executable when the transition is made from a defined state matching a real state of the computer to a next defined state, to execute the defined action selected.