Skip to the page
Year 11 · Computer Science · Autumn 2 · The internet and its uses

DNS, cookies, digital currency and blockchain

UnpluggedPresent ▶

What this lesson covers

5.1 The internet and the World Wide Web

Cambridge IGCSE Computer Science 0478 · Topic 5: The internet and its uses · Paper 1

5.2 Digital currency

Cambridge IGCSE Computer Science 0478 · Topic 5: The internet and its uses · Paper 1

You will learn to

  • Describe the role of DNS when a user types a URL.
  • Explain the difference between session cookies and persistent cookies, with a use of each.
  • Explain what digital currency is.
  • Describe how a blockchain records transactions, and why a change to one block is noticed.

Success criteria

  • I can explain DNS using the phone book example.
  • I can say whether a cookie is session or persistent from what it does.
  • I can explain why changing an old block breaks the chain, using our paper blockchain.
The syllabus points for these sections
  • Explain the difference between the internet and the World Wide Web.
  • Identify the parts of a URL: protocol, domain name and web page/file name.
  • Explain the purpose of HTTP and HTTPS.
  • Describe the functions of a web browser.
  • Describe how a web page is located, retrieved and displayed, including the role of DNS.
  • Explain session and persistent cookies and their uses.
  • Explain what digital currency is.
  • Describe how a blockchain records and tracks transactions.
  • Explain why a blockchain cannot be altered without it being noticed.

Key words

Say each word, then read what it means. Every one is in the glossary too.

Internet
The worldwide network of connected computer networks: the physical infrastructure.
World Wide Web (WWW)
The collection of websites and web pages that are reached using the internet.
URL
Uniform resource locator: the text address of a web page, made of protocol, domain name and file name.
HTTP / HTTPS
The rules for sending web pages; HTTPS adds encryption using SSL.
Web browser
Application software that fetches web pages and renders HTML so you can see them.
DNS
Domain Name System: servers that find the IP address that matches a domain name.
IP address
A number that identifies a device on a network, such as 151.101.0.81.
Cookie
A small text file a website stores on your device to remember you.
Digital currency
Money that exists only electronically.
Blockchain
A time-stamped digital ledger of transactions, stored as linked blocks on many computers, that cannot be altered without detection.
Hash
A fixed-length code calculated from data; any change to the data changes the hash.
SSL
Secure Sockets Layer: a protocol that uses certificates and encryption to secure data between browser and server.

The explanation

Read it here, or open the study page below to go one step at a time with things to try.

5.1 The internet and the World Wide Web

The internet is not the same as the web

The internet is the physical network. It is millions of computers, cables, routers and wireless links joined together across the world. It is the infrastructure.

The World Wide Web (WWW) is a collection of websites and web pages stored on computers connected to the internet.

The web is one service that uses the internet. Email, online gaming and video calls also use the internet, but they are not the web.

InternetWorld Wide Web
What it isA global network of networks (hardware and connections)A collection of web pages and websites (information)
Made ofCables, routers, servers, wireless linksPages written in HTML, linked by hyperlinks
UsesWeb, email, video calls, file transfer, online gamesViewing web pages in a browser
ProtocolsTCP/IP and many othersHTTP and HTTPS
e.g.Example
Think of the Madrid Metro. The tunnels, tracks and stations are the internet. The trains carrying people to places are like services. The web is one line on that network; email is another.
!Watch out

Do not use the two words as if they mean the same thing. The internet is the network. The web is the pages.

The parts of a URL

A URL (uniform resource locator) is the text address of a web page. It is what you type into the address bar.

Cambridge splits a URL into three parts: the protocol, the domain name and the web page/file name.

The protocol is the set of rules used to transfer the page, such as `https`. The domain name names the web server, such as `www.bbc.co.uk`. The web page/file name is the exact page or file on that server, often with a folder path before it.

Part of the domainMeaning
wwwThis is a web server
bbcThe organisation's name
.co.ukTop-level part: a company in the UK (others: .com, .org, .es, .gov)
e.g.Example
https://www.bbc.co.uk/news/technology.html Protocol: https Domain name: www.bbc.co.uk Path (folder): /news/ Web page/file name: technology.html Try it in the toy: type this URL to see its parts. Then press Step to follow the DNS lookup and the request.
?Why?

People remember names far more easily than numbers. The URL is a human-friendly label; DNS later turns the domain name into the server's IP address.

!Watch out

The protocol is not "www". The protocol is the part before `://`, such as `http` or `https`.

There is something to try for this step in the IGCSE library.

HTTP and HTTPS

HTTP (Hypertext Transfer Protocol) is the set of rules for sending web pages between a web server and a browser.

HTTPS (Hypertext Transfer Protocol Secure) is HTTP with encryption added, using SSL/TLS. Encryption scrambles the data so that anyone who intercepts it cannot read it.

A browser shows a padlock in the address bar when HTTPS is used. You should only type passwords or card numbers on HTTPS pages.

?Why?

With plain HTTP, data travels as readable text. Someone on the same public Wi-Fi could read your password. HTTPS stops this.

!Watch out

HTTPS means the connection is encrypted. It does not prove the website is honest. A fake website can also use HTTPS.

What a web browser does

A web browser is application software that lets you find, fetch and view web pages. Examples are Chrome, Firefox, Safari and Edge.

Its main job is to render HTML: it reads the HTML code from the server and turns it into the page you see, with text, images and links.

Cambridge lists these other functions. Learn each one.

Browser functionWhat it does
Renders HTMLTurns HTML code into a visible web page
Bookmarks / favouritesSaves the URL of a page so you can go back to it in one click
HistoryKeeps a list of pages you have visited, with dates and times
TabsLets you open several pages in one browser window
CookiesStores small files from websites on your device
Navigation toolsBack, forward, refresh/reload and home buttons; clickable hyperlinks
Address barWhere you type or see the URL; often also works as a search box

How a web page is retrieved, step by step

Every web server has an IP address, a number that identifies it on the internet, such as `151.101.0.81`. Computers need this number to send data to each other.

People type a domain name, not a number. The Domain Name System (DNS) is a system of servers that look up the IP address for a domain name. It works like a phone book for the internet.

Follow the numbered arrows in the diagram, then read the steps.

e.g.Example
You type www.bbc.co.uk/news into the address bar. 1. The browser sends the domain name www.bbc.co.uk to a DNS server. 2. The DNS server looks up the matching IP address. If it does not know it, it asks another DNS server. 3. The DNS server sends the IP address back to the browser. 4. The browser sends an HTTP(S) request to the web server at that IP address, asking for the page. 5. The web server sends back the page's HTML (and files such as images). 6. The browser renders the HTML and shows the page.
?Why?

Splitting the job lets humans use names and computers use numbers. DNS servers also store recent lookups, so popular sites are found faster.

!Watch out

The DNS server does not send the web page. It only sends the IP address. The page comes from the web server.

There is a diagram for this step in the IGCSE library.

Cookies: session and persistent

A cookie is a small text file that a website stores on the user's device. The next time the browser visits that site, it sends the cookie back, so the site recognises the user.

A session cookie is temporary. It is kept in memory and deleted when the browser is closed.

A persistent cookie is saved on the device's storage. It stays until its expiry date or until the user deletes it. It remembers you between visits.

Session cookiePersistent cookie
How long it lastsUntil the browser is closedUntil its expiry date or until deleted
Where it is keptTemporary memory (RAM)Storage on the device (for example the SSD)
Typical useHolding items in a shopping cart during one visitStaying logged in, remembering language and preferences, tracking for adverts

What cookies are used for

Cambridge lists four main uses of cookies.

Saving personal details, such as your name and delivery address, so you do not retype them.

Tracking user preferences, such as language, dark mode or the pages you look at, so the site can be personalised and show targeted adverts.

Holding items in an online shopping cart while you keep browsing.

Storing login details, so you stay logged in when you return.

e.g.Example
On a supermarket website you add milk and bread to the cart, then go to another page. A session cookie keeps the cart full. Next week the site greets you by name and shows Spanish prices: that is a persistent cookie.
!Watch out

Cookies are not programs and cannot run code. They are data. The privacy worry is that persistent cookies can track your browsing, which is why sites must ask your permission in Spain and the UK.

5.2 Digital currency

What digital currency is

Digital currency is money that exists only electronically. There are no coins or notes.

It is used to pay for goods and services online or with a phone. Bitcoin is a well-known example of a cryptocurrency, a digital currency that uses cryptography to keep it secure.

Most cryptocurrencies are decentralised: no bank or government controls them. Instead, a record of every transaction is shared across many computers using a blockchain.

?Why?

Without a bank in the middle, there must be another way to trust that a payment really happened and that the same coin is not spent twice. The blockchain solves this.

Blockchain: a chain of linked blocks

A blockchain is a time-stamped digital ledger. A ledger is a record of transactions, like a bank statement.

Transactions are grouped into blocks. Each block holds: the transaction data, a timestamp, its own hash, and the hash of the previous block.

A hash is a fixed-length code worked out from the block's data. If even one character of the data changes, the hash changes completely.

Because each block stores the previous block's hash, the blocks are linked like a chain.

e.g.Example
Block 1: Ana pays Ben 2 coins. Hash = 8f3a… Block 2: Ben pays Carla 1 coin. Previous hash = 8f3a… Hash = c71d… Block 3: Carla pays Dani 1 coin. Previous hash = c71d… Hash = 09be…

Why a blockchain cannot be altered

Use the blockchain toy. Change the amount in one block, or press Tamper: change block 2. Watch its hash change, and see that block and every block after it turn red.

If someone changes an old block, its hash changes. The next block still stores the old hash, so the link is broken and the change is spotted.

Copies of the whole blockchain are kept on thousands of computers called nodes. A cheat would have to change every later block on most of those computers at the same time. That is practically impossible.

So the blockchain gives a permanent, trusted record that tracks every transaction.

?Why?

Trust comes from maths and from many copies, not from one bank. That is why blockchain is also used to track things like medicines or food through a supply chain.

!Watch out

"Cannot be altered" means a change would be detected and rejected. It does not mean the data is secret: on most public blockchains, anyone can read the transactions.

There is something to try for this step in the IGCSE library.

Study it

Open the study page and go one step at a time.

Check yourself

One question at a time. The reason shows after each answer.

Saved on this device.