ELI5: How can hackers change website content for all users instead of just their own screen?
Explained with a neighborhood bulletin board
Hackers can change a website for everyone because they sneak into the central computer where the website lives and replace the original files.
Imagine a neighborhood bulletin board at a local park. Every morning, the park manager pins up a newsletter that tells everyone the daily schedule.
If you walk up to the board, take a picture of the newsletter with your phone, and draw a silly mustache on the picture, only you can see it. You did not change the real board; you only changed your own copy. This is what happens if a regular user tries to edit a website on their own screen using their own web browser.
However, a hacker acts differently:
- Finding the real board: A website is stored on a giant main computer called a server, which acts like the master printing press or the real bulletin board.
- Finding the master key: The hacker searches for a way to break into that main computer, just like finding a lost key or an unlocked back door to the park office.
- Swapping the original: Once inside, the hacker changes the master copy of the newsletter stored on the computer. They might swap the schedule with a giant drawing of a clown.
- Sharing the change: When other people visit the website, their computers ask the master computer, "What does the page look like today?" The master computer hands out copies of the hacked version to everyone.
Because the master copy itself was changed at the source, every single person who looks at the website sees the new, altered version instead of the real one.
Ask your own question
Follow-up questions
Test yourself
Three quick questions to see if it stuck. You can challenge a friend after.
Get this entry by email
We'll send it to your inbox, plus one good explanation a week if you like.