Secure Access Policy Enforcement for Certain Application Protocols