A non-transitory computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer processor, cause the computer process to perform a method for distribution of audiovisual content intended for secure playback, the method comprising:
- (a) generating program logic adapted to correct a modification applied in at least a portion of the audiovisual content;
- (b) configuring the program logic to determine whether a countermeasure is to be applied to playback environment, by:
- (1) identifying at least one characteristic of the playback environment;
- (ii) using said characteristic to determine whether a countermeasure is to be applied to the playback environment;
- and
- (iii) if a countermeasure is to be applied to the playback environment, executing said countermeasure before correcting the modification.