Countermeasures

What countermeasures are needed to stop unauthorized third-party applications from storing data on FTP servers?
What are the three types of countermeasures? These countermeasures can be classified into three types of categories, including, cryptography methods, ...