Pharming attack is one of the various cyber-attacks practiced by the attackers. It is a fraudulent practice in which legitimate website traffic is manipulated to direct users to the fake look-alikes that will steal personal data such as passwords or financial details or install malicious software on the visitor's computer.
Pharming attacks can be prevented by the following methods:
Install the power antivirus software that will detect and remove the malware that is directing to the malicious sites on your computer.
Check the URLs on the sites that you visit are trustworthy.