DoeITBewust Computers, smartphones and the internet, explained calmly

Ransomware: when your photos and files are suddenly locked

ExplainerAbout 3 minutes to readWritten on 16 November 2026

Short answer

Ransomware is a malicious program that locks your files and asks for money to give them back. The best protection is a backup on a drive you unplug after use, plus updates. Hit by it? Disconnect your computer from the internet and don't pay.

What happens?

The program usually gets in through an email attachment, a fake download or a computer without updates. At first it works unnoticed. Then:

  • you can't open your photos and documents any more, or they've got strange names;
  • a message appears: "Your files are encrypted. Pay within three days, or you'll lose everything."

Encrypted means: the files have been turned into a secret code. Only the scammer has the key.

Protect yourself in advance

  1. Make a backup of your photos and documents on an external drive. Unplug the drive after the backup, otherwise the program can lock those files too.
  2. Install updates for your computer, smartphone and programs. Read Installing updates.
  3. Don't open unexpected attachments, even if they seem to come from someone you know. Read An email attachment: open it or not?.
  4. Keep your computer's security switched on. On Windows that's Windows Security (Defender).
  5. Only download programs from the official website or the official app store.

You've been hit: what do you do?

  1. Disconnect your computer from the internet. Pull out the network cable or turn off wifi. That stops other devices getting infected.
  2. Unplug external drives too.
  3. Don't pay. There's no guarantee you'll get your files back, and you're supporting the criminals.
  4. Take a photo of the message on your screen with your smartphone.
  5. Report it to the police.
  6. Ask for help from a computer repairer or someone you trust. For some kinds of ransomware there's a free fix. You'll find it at nomoreransom.org, a website run by police forces and security companies.
  7. Have a backup? Have your computer completely reinstalled and then put your files back.

Remember this

  • A backup on an unplugged drive is your best protection.
  • Updates, and care with attachments.
  • Hit? Disconnect the internet and don't pay.