A search engine is a tool that collects web pages, sorts them and shows the best matches for your question.
This guide is for anyone who uses a search box every day and wants to know what happens behind it. Knowing how results are picked helps you spot the fake ones that criminals try to slip in.
In short
- Search engines work in three stages: robots fetch pages, the pages are stored in an index, and an ordering system picks results for you.
- Google says nobody can pay to rank higher in its ordinary results. Paid adverts appear in their own labelled section.
- Criminals try to game each stage, for example with hacked pages, tricks aimed at the robots, and lookalike adverts.
- A top result is not proof of safety. Check the web address, and type it yourself for banks and other important sites.
What you will learn
- Explain crawling, indexing and ranking in plain words.
- Tell an advert from an ordinary search result.
- Spot the signs of a poisoned search result.
- Check a site before you download or sign in.
- Robot reader (web crawler)
- a program that visits web pages and follows links to find new ones.
- The big catalogue (index)
- the store of pages a search engine has read and can show in results.
- Rigged results (SEO poisoning)
- tricks that push a harmful page higher in ordinary search results.
What is a search engine?
Think of a librarian with a giant card index. Every day the librarian reads new books and writes a card for each one. When you ask a question, they flick through the cards and hand you the books that fit best.
A search engine does the same for the web. Robot programs visit pages and copy what they find. The search engine stores what it learns in a huge catalogue called an index. When you type a search, it picks the most useful pages from that index and puts them in order [1].
Many search pages also show adverts. These are paid for, and they sit in a marked section, apart from the ordinary results [3].
Where the comparison stops working: a librarian checks who wrote a book. A search engine reads pages automatically and at huge scale, so some pages written to fool it can slip through for a while.
Why does it matter?
People tend to trust what sits at the top of the page. Criminals know this. The FBI has warned that criminals buy search adverts that copy real brands, and that these can be hard to tell apart from genuine results [4].
If you download free software
What could happen: a fake download page near the top of the results gives you harmful software instead of the real program.
Check this: is the web address the maker's own site?
If you bank or shop online
What could happen: you search for your bank, click a lookalike site and type your password into it.
Check this: do you go to your bank through a saved bookmark or its app, not a search?
Next: Phishing for Beginners
If you run a website
What could happen: criminals break into your site and add junk pages, so search engines show your site next to scams.
Check this: search for your own site now and then, and look for pages you did not write.
What does it look like?
Here is a made-up results page for a search about a free photo editor. Read it from the top.
Example only. All values are made up.
Search: free photo editor download Sponsored (1) EXAMPLE Photo Editor - Official Free Download examp1e-photo-editor-download.example.invalid (2) Results EXAMPLE Photo Editor | Home examplephotoeditor.example.com (3) Free photo editor ZIP - fast mirror 0000 (4) some-old-blog.example.invalid/wp/0000/editor.zip
- This label marks a paid advert. Many adverts are genuine, so it is a reason to look closer, not proof of a scam.
- The address swaps a letter for a number and adds extra words. In a real screen, this line would contain the advert's web address.
- The maker's own site, in the ordinary results.
- A download on an unrelated old blog. This is a common sign of a hacked page.
Why this is risky: results 2 and 4 look helpful. But neither address belongs to the maker.
The safer way: find the maker's real address and check it matches. Then download only from there.
How does it work?
- Crawling. Robot programs, such as Google's crawler called Googlebot, fetch pages. They find new pages by following links, by revisiting known pages, and from lists that site owners send in [1].
- Indexing. The search engine reads each page and stores what it is about in its index. Google says it does not promise to crawl or index every page [1].
- Ranking. When you search, the engine picks and orders pages. Google says this uses hundreds of signals, including your location, language and device [1].
- Adverts are separate. Google says it does not take payment to rank a site higher in its ordinary results [1]. Adverts are bought, and they appear in a marked section [3].
- Some people try to cheat. Google lists banned tricks. They include hacked content added to real sites, and showing robots different content from what visitors see. They also include stuffing pages with keywords and buying links. Sites that break these rules may rank lower or not appear at all [2].

Making pages easy for search engines to read is called search engine optimisation, or SEO. Most SEO is honest work. SEO poisoning is the harmful version: criminals use SEO tricks so their pages rank well for chosen searches.
Here is one example from 2024. The security company Sophos described a campaign aimed at people asking if Bengal cats are legal in Australia. It pushed a hacked website to the top of the results. The page offered a zip file that looked like a document, but it held harmful code [5].
Adverts can be abused too. The FBI warned that criminals buy adverts that copy real brands and lead to lookalike sites. Some offer fake software downloads, and some copy money sites to steal sign-in details [4]. Google says it is verifying advertisers and shows the advertiser's name and location in an ad disclosure [6].
A worked example
This story is made up to show the idea.
Gareth Llewellyn is a retired teacher in Swansea. He wants to tidy up some old family photos, so he searches for a free photo editor.
The top result says "Official Free Download". Gareth almost clicks, then remembers a tip from his daughter: look at the address first. The address has an extra word and a number where a letter should be. Above it is the word "Sponsored".
He scrolls down. The maker's own site is lower on the page, with a plain, short address. He opens that one instead, and checks the download button is on the same site.
A week later Gareth searches for a tenancy letter template. The second result is a page on an old cooking blog. It offers a zip file named like a letter. Gareth thinks that is odd. Why would a cooking blog host a legal template? He closes the page and gets the template from a charity he knows.
That evening he searches for his bank to check a payment. He stops, and opens his bank's app instead. Later he saves his bank's real address as a bookmark.
Gareth did not need to know how ranking works in detail. He learned that a high place in the results does not mean a page is safe. The web address is worth a few seconds of checking.
If you lose money to a fake site, report it. In England, Wales and Northern Ireland, use Report Fraud. In Scotland, call Police Scotland on 101 [7][8].
Myths and mistakes
| What people think | What is true |
|---|---|
| The top result has been checked and is safe. | Ranking picks useful-looking pages. It is not a safety check, and some harmful pages get through. |
| Big companies pay to be first in the ordinary results. | Google says nobody can buy a better place in its ordinary results [3]. Paid places are adverts, shown in their own section. |
| Every advert is a scam. | Most adverts are genuine. The label is a reason to check the address, not proof of a scam. |
| If the page looks like the real site, it is the real site. | Copies can look identical. The web address is the better clue. |
| A zip file from a search result is just a document. | A zip can hide a program. Be wary of downloads from sites that have nothing to do with the topic. |
What can I do this week?
- Bookmark the real sites for your bank, email and any shop you use often.
- Next time you search, find the advert label and the ordinary results on the page.
- Before you download anything, check the address belongs to the maker.
- Keep your browser and device up to date.
- Tell family members to type or bookmark important sites instead of searching for them.
Checklist
- I can explain crawling, indexing and ranking in one sentence each.
- I can tell a labelled advert from an ordinary result.
- I check the web address before I click a result or advert.
- I go to my bank by bookmark or app, not by search.
- I download software only from the maker's own site or an official app store.
- I am wary of downloads hosted on unrelated sites.
- I know where to report fraud where I live.
Common questions
How does a search engine find new pages?
Mostly by following links. A robot program visits pages it already knows, follows the links on them, and fetches the new pages it finds. Site owners can also send in lists of their pages, called sitemaps. Google describes all three routes in its guide to how search works [1].
Can someone pay to appear at the top?
Only as an advert. Google says it does not accept payment to rank a site higher in its ordinary results [1]. Businesses can pay for adverts, which appear in a marked section. That is why the advert label is worth noticing.
What is SEO poisoning?
It is the use of search tricks to push a harmful page high in ordinary results. Criminals pick searches people are likely to make, such as free downloads or document templates. They then use hacked sites or junk pages to rank well for them [5].
How can I check who is behind an advert?
Look for the ad disclosure. Google says verified advertisers have their name and location shown in an ad disclosure [6]. Its Ads Transparency Center also lets you search ads from verified advertisers [3]. Still check the web address before you click.
Are AI search answers safer than a list of links?
Not by default. AI answers are built from pages the tool found, so a poisoned page can still shape what you see. Check the sources an answer links to, the same way you would check an ordinary result.
Where next?
Ready for the detail? Read the practitioner guide: Malvertising and SEO Poisoning Guide. It goes further into the lures criminals use, how security teams detect them and the controls that block fake downloads at work.
Also useful:
- Drive-by Downloads and Malvertising for Beginners
- SEO Spam Hacks for Beginners
- AI Search Engines for Beginners
- Browser Security for Beginners
Related NHI Mgmt Group resources: Phishing for Beginners, Malware for Beginners and Reporting Scams and Cybercrime for Beginners.
Key terms
- Web crawler
- An automated program that visits web pages, follows links and collects content so it can be indexed.
- Search engine indexing
- Adding web content to a search engine's searchable store so it can appear in results.
- Search engine optimisation
- Making web pages easier for search engines to crawl, understand and rank.
- SEO poisoning
- Gaming search rankings so harmful pages appear next to or above genuine results.
- Malvertising
- Harmful adverts, often bought through real ad networks or search engines, that lead to fake pages or downloads.
- Lookalike domain
- A web address made to look like a trusted brand's, to trick people into thinking it is genuine.
Sources and further reading
- Google Search Central, "In-depth guide to how Google Search works", last updated 18 December 2025. https://developers.google.com/search/docs/fundamentals/how-search-works (accessed 2 Dec 2026).
- Google Search Central, "Spam policies for Google web search", last updated 23 November 2026. https://developers.google.com/search/docs/essentials/spam-policies (accessed 2 Dec 2026).
- Google, "Ads on Search", How Search Works. https://www.google.co.uk/intl/en_uk/search/howsearchworks/our-approach/ads-on-search (accessed 2 Dec 2026).
- FBI Internet Crime Complaint Center, "Cyber Criminals Impersonating Brands Using Search Engine Advertisement Services to Defraud Users", public service announcement I-122122-PSA, 21 December 2022. https://www.ic3.gov/PSA/2022/PSA221221 (accessed 2 Dec 2026).
- Sophos, "Bengal cat lovers in Australia get psspsspssd in Google-driven Gootloader campaign", Sophos blog, 2024. https://www.sophos.com/en-us/blog/bengal-cat-lovers-in-australia-get-psspsspssd-in-google-driven-gootloader-campaign (accessed 2 Dec 2026).
- Google Ads Help, "Advertiser verification". https://support.google.com/adspolicy/answer/9703665 (accessed 2 Dec 2026).
- GOV.UK, "Report Fraud: new service from City of London Police", December 2025. https://www.gov.uk/government/news/report-fraud-new-service-from-city-of-london-police (accessed 2 Dec 2026).
- Report Fraud, "Should I report to Report Fraud?". https://www.reportfraud.police.uk/should-i-report-to-report-fraud/ (accessed 2 Dec 2026).