A computer program product in a non-transitory computer readable medium for use in a data processing system, the computer program product holding computer program instructions which, when executed by the data processing system, perform a method for detecting and applying security policy to active client requests within a secure user session, the method comprising:
- applying a first heuristic to a plurality of requests for a particular resource to identify a pattern indicative of an active client, the active client comprising code that generates automated requests within the secure user session;
- upon receipt of a new request for the particular resource, determining whether the new request is consistent with the pattern indicative of the active client;
- and
- in response to determining that the new request is consistent with the pattern indicative of the active client, taking an action with respect to a secure session policy, wherein the action bypasses the secure session policy.