Phishing and pharming are both types of online fraud. Phishing involves the use of fake emails, websites or messages to trick people into providing sensitive information, whereas pharming involves redirecting website traffic to a fake website to steal sensitive information.