Although pharming is considered by some as a type of phishing attack, it relies on a different mechanism. The main difference between phishing and pharming is that phishing requires the victim to make a mistake, whereas pharming only requires the victim to try to access a legitimate website that had its DNS record compromised by the attacker.