Pharming
An attack that redirects a user to a fake website, even when they type the right address, using malicious code or DNS poisoning, so the site can steal their login and payment details.
Understanding Pharming in IGCSE Computer Science Paper 1
What it does: The code changes where the address leads, so the correct web address ends up at the attacker's fake website. With pharming the user types the correct address and is still redirected. Phishing relies on the user being tricked into clicking a link or opening a message. The fake site looks genuine so that users enter their login and payment details, which the attacker then steals. The redirect comes from malicious code or poisoned DNS records, not from how the user typed. The key feature of pharming is that the redirection happens even when the address is typed correctly.
Common mistakes: The program should look up the typed address stored in the variable address. Putting it in quotes looks up the word "address" instead. It should be ip ← lookup(address). An IF statement must end with THEN. The line should be IF dns_record = fake_ip THEN.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 520–546) and word search (Modules 510–546).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
pharmingFill in the Blanks
Spot the Error
Student with a class code? Join your class →