Skip to content
BoKSA

Cyberveilig-check

Cyberveilig-check

An interactive Dutch website for prospective students aged 15–25 about cyber safety. It covers all topics A0–A13 from cybersafety-how-to.md.

Version 2 adds a front page (#/) for Studio Cyber Resilience, based on the slide CR uitleg.jpg. It explains the studio and shows a picture of the check's start screen. That picture is the button into the check (#/start). Every reset button (Opnieuw beginnen, Wis gegevens / nieuwe test) clears the answers and returns to this front page. The front page text is in viewIntro() in public/js/app.js; its background is public/img/intro-bg.jpg (the hero image without the logo). Version 1 is unchanged in ../website/.

For every topic the student: 1. reads what it is (Wat is het?) and why it matters (Waarom is het belangrijk?), 2. can watch videos (embedded, loaded only on click via youtube-nocookie.com) or open the articles, games and laws from the how-to file, 3. answers 1–3 behaviour questions ("what do you do?") and gets immediate feedback.

At the end the student gets an overall safety score and level (Cyber-pro / Goed op weg / Let op! / Risicovol), a score per topic, personal advice ordered from weakest topic to strongest, and Dutch help lines. The result can be printed or saved as PDF.

Privacy: no data is stored

  • 100% static: HTML + CSS + vanilla JavaScript. There is no backend, database, cookies, localStorage, analytics or third-party scripts.
  • Answers exist only in the memory of the browser tab. Closing or refreshing the tab removes them, and the student is warned before that happens.
  • nginx writes no access logs, so there are no IP addresses or URLs on disk.
  • YouTube is contacted only when the student clicks Afspelen. A strict Content-Security-Policy blocks all other external connections.

Multiple users at once

Every visitor gets the same static files, and all logic runs in the visitor's own browser. The server only serves about 200 KB per visitor, after which the browser caches CSS, JS and images. A small instance (AWS Lightsail $5 or EC2 t3.micro/t4g.micro) can easily serve several classes at the same time.

No per-IP rate limiting is configured on purpose: a whole school class often shares one public IP address.

Structure

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
website/
├── public/              ← the website (this is what gets served)
│   ├── index.html
│   ├── css/style.css
│   ├── js/data.js       ← ALL content: texts, sources, questions, points, advice
│   ├── js/app.js        ← logic (routing, quiz, scoring, results)
│   └── img/hero.jpg
├── deploy/
│   ├── cyberveilig.nginx.conf
│   └── setup.sh         ← one-shot install on Ubuntu
└── Dockerfile           ← alternative: run as container

To change content, edit public/js/data.js. Each answer option has punten from 0 (risky) to 3 (safe). Levels: ≥85% Cyber-pro, ≥65% Goed op weg, ≥45% Let op!, otherwise Risicovol (see NIVEAUS in app.js).

Stand-alone laptops (no Python, nothing to install)

Copy the whole website folder to the laptop (USB stick, network share). Then choose one option:

Option How Videos
A. Open the file Double-click public/index.html Open on YouTube in a new tab (▶ Bekijk op YouTube)
B. Mini server, no install Double-click start-zonder-python.bat (uses the PowerShell built into Windows 10/11) Play inside the page (▶ Afspelen)

With option B a black window opens and the browser goes to http://localhost:8080. Keep the window open while the site is in use. Stop: press Ctrl+C in that window, or close it. Option B is only reachable from that laptop itself.

Why the difference: YouTube refuses embedded videos on a page opened as a file (file://), because such a page has no web address. The site detects this and links to YouTube instead.

Both options need an internet connection for the videos and external articles. Everything else (explanations, questions, result) works offline.

If a managed laptop blocks PowerShell scripts, option A always works.

Run locally with Python (Windows)

Requires Python 3 (python --version). The scripts are in the website folder:

Script Who can use the site Address
start-lokaal.bat only this computer http://localhost:8080 (opens automatically)
start-netwerk.bat every device on the same network (e.g. a classroom) http://<ip-of-this-pc>:8080, the script prints the address

Start: double-click the script. A black window opens; keep it open while the site is in use. Stop: press Ctrl+C in that window, or close the window.

For start-netwerk.bat, Windows may ask to allow Python through the firewall the first time: allow it for private networks. If other devices still can't connect, the network (e.g. guest Wi-Fi) may block traffic between devices.

Manual alternative (any OS):

1
2
cd website/public
python -m http.server 8080                    # add --bind 127.0.0.1 for this computer only

Deploy on AWS

  1. Create a server: Lightsail instance or EC2 instance with Ubuntu 24.04. Attach a static IP (Lightsail) or Elastic IP (EC2).
  2. Firewall: open ports 80 and 443 (Lightsail Networking tab, or EC2 Security Group). Keep port 22 restricted to your own IP.
  3. DNS (optional, required for HTTPS): add an A record from your domain to the static IP.
  4. Copy the files:
    1
    scp -r website ubuntu@<server-ip>:~/
    
  5. Install:
    1
    2
    3
    4
    ssh ubuntu@<server-ip>
    cd ~/website
    sudo bash deploy/setup.sh                                # HTTP only (testing)
    sudo bash deploy/setup.sh cyberveilig.example.nl you@example.nl   # with HTTPS (Let's Encrypt)
    
    Certbot sets up automatic renewal itself.
  6. Update later: copy the new website/ folder and run setup.sh again.

Alternative: Docker

1
2
docker build -t cyberveilig .
docker run -d --restart unless-stopped -p 80:80 --name cyberveilig cyberveilig

Put HTTPS in front of it, for example with an AWS Application Load Balancer and an ACM certificate, or with Caddy or Traefik.

Sources

Content is based on Cybersafety – How to and the CONCORDIA Teach-the-Teachers Methodology (2026 update). All video and article links come from that file. Most of them are in English and are marked "EN" on the site. Dutch help organisations were added: De Luisterlijn, Helpwanted/Offlimits, Fraudehelpdesk, Veilig Internetten, Politie and 113.