Please enable JavaScript to use CodeHS

Networking and IT

Security and safety

Being connected is powerful, but it also brings risks. Hackers, scams, and data breaches are real. The good news is that a few smart habits can protect you, your accounts, and your projects.

Cybersecurity ~10 min Middle / High School
The Big Idea

Firewalls

A firewall is a security system that watches network traffic and blocks unwanted connections. It acts like a bouncer for your computer or network, only letting trusted traffic through.

Firewalls can be software on your computer or hardware in a router. They use rules to decide what to allow and what to block. For example, a firewall might block incoming traffic on a port that is not being used by a trusted service.


How It Works

Encryption and HTTPS

Encryption scrambles data so that only the intended recipient can read it. When you use HTTPS, your browser and the website agree on a secret key and encrypt everything they send. This protects passwords, messages, and credit card numbers from eavesdroppers.

Always check for the padlock icon and https:// before entering sensitive information. If a site only uses http://, do not type in passwords or personal data.


Best Practice

Passwords and accounts

Strong passwords are one of the easiest and most important defenses. A good password is long, unique, and hard to guess. Using a password manager lets you create different strong passwords for every site without memorizing them.

Two-factor authentication, or 2FA, adds an extra step after your password. It might send a code to your phone or use an app. Even if someone steals your password, they cannot log in without the second factor.


Real World

Phishing

Phishing is when an attacker tricks you into giving up information by pretending to be someone you trust. They might send an email that looks like it is from a bank or school and ask you to click a link or enter your password.

Example: "Urgent: Your account will be locked. Click here to verify your password."

Before clicking, check the sender address, look for odd grammar, and hover over links to see the real URL. When in doubt, contact the organization directly through a known website or phone number.


Interactive

Password strength checker

Type a password below. The meter estimates strength based on length and variety. For real accounts, use a password manager and never reuse passwords.

Start typing...

Code

A simple secret code

One basic security idea is scrambling a message so only someone with the key can read it. This Caesar cipher shifts every letter by the same amount.


Your Turn

Check yourself

List three things you can do to make your online accounts more secure.

Your answer:

Sample answer: Use strong and unique passwords, turn on two-factor authentication, check for HTTPS before entering sensitive data, and be suspicious of unexpected links and emails.


Check Yourself

Quick quiz

1. What does HTTPS do?

2. What is phishing?

3. Why is two-factor authentication helpful?

Keep learning

You have finished the Networking and IT series. Next, explore what you can do with computers at the elementary level.

Last tutorial in the Networking and IT series.