GCSE · Computer Science · AQA · Spec 8525
Pharming
You type a shop’s address perfectly. No links, no shortcuts. The page looks exactly right. It’s a fake. You made no mistake. So how did you get there?
Cyber security · Follow the address
One address, three journeys
Your browser can’t connect to a name like www.cloudshop.example. It needs the address of the server that holds the site, so the name has to be looked up first. You never see that lookup happen, and that’s exactly where pharming strikes.
Keep your eye on “server address”. In which step does it go wrong?
Message: www.cloudshop.example, typed correctly every single time
Output
Step 1: Journey A. You type the address perfectly. Now the name has to be looked up to find the server’s address.
Press Next to follow the lookup one step at a time. Three journeys, one address, typed correctly every time.
What the fake site is for
Reason it through
Why would an attacker go to the trouble of sending you to a fake copy of a website?
First link · your turn
You’ve landed on the fake site. What do you actually see?
Predict, then check
Two protections, two different places the attack can happen. Think about where each one works.
Priya wants to protect herself against pharming, and her computer has up-to-date anti-malware software. What is that software there to do?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
You typed it perfectly. You still ended up on a fake site.
What you need to know
- Pharming: you try to visit a genuine website and get redirected, without knowing, to a fake one that looks real.
- Your browser can’t connect to a web address on its own. It needs the address of the server that holds the site.
- So the web address gets looked up and turned into the server’s address first. Pharming tampers with this lookup.
Have a goPharming strikes after you’ve pressed Enter. Which one is the attacker messing with: your typing, or the lookup that turns the address into a server address?
The lookup.
The address was typed correctly, so typing isn’t the problem: pharming changes which server address the lookup gives back.
- On your own computer: malicious code can change the address information stored there.
- At a DNS server: an attacker compromises it, so it sends back the fake site’s address instead of the real one.
Have a goMia and Max both type the same correct address and both land on the same fake site. Max’s laptop has malicious code that changed its stored addresses; Mia’s laptop is clean. Where did each lookup go wrong?
Max: on his own laptop. Mia: at a DNS server.
Mia’s stored information is untouched, so her poisoned answer must have come from a compromised DNS server, the other place pharming can strike.
- The fake site collects what you type into it, such as usernames, passwords or bank details.
- Those details then let the attacker commit fraud or get unauthorised access to your accounts.
- Phishing tricks you into following a link in a message. Pharming can catch you even when you type the correct address.
Have a goYour cousin gets a message: “Your game account is locked, tap here to log in.” She taps it and a fake login page opens. Her brother insists, very loudly, that this is pharming. Is he right?
No, it’s phishing.
She was tricked into following a link in a message. Ending up on a fake site isn’t the test; how she got there is.
- Up-to-date anti-malware software can detect code that changes the address settings on your computer.
- Before entering personal details, check the site uses a secure connection with a valid certificate.
The big picture
Pharming sends you to a fake website even when you type the correct web address. It works by tampering with the hidden lookup that turns a web address into the server’s address: either malicious code changes the address information stored on your computer, or a DNS server is compromised. The fake site looks real, so you type in details like passwords or bank details, and the attacker uses them for fraud or to get into your accounts.
Key points
Worked example
Problem
Several students at a school type the correct address for the school’s learning website, and all of them land on the same fake login page. Their computers have been scanned with up-to-date anti-malware and are clean. Explain what has most likely happened, and why the students didn’t notice.
⚠ Watch out
Thinking you’re safe from pharming as long as you type the address yourself. That avoids a phishing link, but pharming tampers with the lookup after you’ve typed, so a perfectly typed address can still take you to the fake site.
Memory hook
Think of your phone’s contacts. You tap “Mum” and trust the number saved behind the name. If someone secretly swapped it, you’d ring a stranger without doing anything wrong. Pharming swaps the address behind a web address: in your computer’s stored list, or at a DNS server.
Check yourself
Cover the page. In two sentences, explain how someone who types a web address perfectly can still land on a fake site. Then name one protection and the step it guards.
Flashcards
(12)What is pharming?
Why does a web address have to be looked up before the browser can connect?
What does a DNS server do?
Pharming attack point 1: what happens on the user’s own computer?
Pharming attack point 2: what happens at a DNS server?
Why doesn’t a pharming victim notice anything is wrong?
What is a pharming site used for?
What can an attacker do with details collected by a pharming site?
Phishing or pharming: the user types the correct address but still reaches a fake site.
How does up-to-date anti-malware help against pharming?
What should you check before entering personal details on a website?
How does pharming send you to the fake site?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 30 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.