Sharing files between devices at home or in a small office feels like something that needs no thought. Right-click, share, done. The files stay on your own network, so what could go wrong.

Two things, in fact. First, a local network is rarely as small as imagined. Second, a folder shared for one short-lived purpose is almost never unshared afterwards.

Who is actually on your network

A shared folder is visible to everyone on the same network. In a single-family home that may genuinely be just you. But the list is usually longer:

  • Guests who were once given the Wi-Fi password, on devices that remember it forever.
  • Neighbours or tenants, if the password ever spread. How to check: seeing who uses your Wi-Fi.
  • Smart devices such as TVs, cameras, and speakers. These are the most likely to carry an unpatched flaw (smart home device security).
  • Visitors' work devices, which may be carrying a problem picked up elsewhere.

That's what makes a password-free share a problem. Not because there's an intruder, but because "the local network" turns out not to be a closed circle.

Four things that remove most of the risk

1. Never share without a password. In Windows the setting is called password-protected sharing, and turning it off means anyone on the network can open the folder unchallenged. Leave it on, without exception.

2. Share a folder, not a whole drive. Sharing the C drive means sharing everything on the computer, including things you never intended. Create one folder for sharing, and share only that.

3. Grant read-only where that's enough. Most sharing is for others to read. Write access means your files can be changed or deleted, and that's exactly what ransomware uses once it reaches one device on the network.

4. Mark networks outside your home as public. That's what Windows and macOS ask when joining a new network, and the answer decides whether your computer may be visible to others. For rented rooms, hotels, cafes, and other people's offices, the answer is always public. Related reading in using public Wi-Fi safely.

Boarding houses (kos), rentals, and shared Wi-Fi

In a kos, you share one network with a dozen residents who don't know each other. To your laptop, they're all "the local network". Three things to check once:

  • On Windows 11, go to Settings → Network & internet → Wi-Fi → the kos network name, and choose the Public profile. Network discovery and file sharing close automatically.
  • Check folders you shared while still at home. They're open on the kos network too if the profile is Private.
  • Don't put copies of your KTP (ID card), payslips, or campus documents in a shared folder "to pass to a roommate". Use a message or a revocable share link.

For kos owners, device isolation on the router stops residents seeing each other at all. Covered in Wi-Fi for boarding houses.

Small businesses: customer data in a shared folder

In many clinics, pharmacies, tax consultancies, service bureaus, and print shops, the cashier PC and the admin PC share a folder of scanned KTP cards, NPWP (tax ID) cards, or patient notes. Often with no password, and on the same Wi-Fi that waiting customers use.

This isn't only a technical matter. Indonesia's Law No. 27 of 2022 on Personal Data Protection sets obligations for anyone processing other people's personal data, small businesses included, to protect it. A folder of KTP scans that a visitor's phone can open is hard to defend as protection.

A real example happened here. The WannaCry ransomware in 2017 spread through a flaw in Windows' file-sharing protocol (SMB), and Dharmais Cancer Hospital and Harapan Kita Hospital in Jakarta were among those hit. One infected computer is enough to reach others that open shared folders.

SituationRiskWhat to do
A "SCAN KTP" folder shared without a passwordAnyone on the Wi-Fi can copy itTurn on password-protected sharing, grant access per account
Customers use the same Wi-Fi as the cashierVisitors' phones share a space with customer dataCreate a separate guest network
All staff use one admin accountNo way to tell who deleted whatOne account per person, write access only where needed
An old Windows PC no longer updatedOld SMB flaws stay openUpdate it, or don't host shared folders on it
Backups only in a shared folderRansomware locks the backup tooKeep one copy disconnected from the network

Network guidance for businesses like these is in internet for clinics and medical practices and Wi-Fi for a small office.

The USB port on the ONT

Some provider-supplied ONTs, including several ZTE models, have a USB port. On some models, a flash drive or hard disk plugged in can be shared to the whole network through a USB sharing menu. If you didn't mean to use it, unplug the storage, then find that menu on the admin page and turn it off. If you did, make sure it has a non-default password.

Separate what shares from what doesn't

If guests need internet at your home or business, a guest network settles this entire chapter at once. Devices on the guest network can't see devices on the main one, so your shared folders never sit in the same space as a visitor's phone. Steps in separating a guest network.

The same principle covers smart devices. A TV never needs to open your documents folder, and separating it removes the possibility without having to trust the TV's security.

If sharing is frequent, move it to network storage

Sharing from a laptop has a practical weakness: the files exist only while that laptop is on and at home. Once sharing becomes routine, network storage is far tidier. It offers separate accounts per person, per-folder permissions, and backups that run themselves. Options in choosing network storage, and backup setup in automatic backups.

Three things to do on a storage device before using it: change the default password, create separate accounts per person rather than one shared login, and enable automatic updates (firmware updates apply equally here).

Reaching files from outside

This is the part most often done wrong, and the riskiest. File-sharing protocols were designed for closed networks, not the internet. Exposing their ports through port forwarding invites the whole internet to knock, and automated scanners find it within hours. Several of the largest ransomware outbreaks entered this way.

Two correct approaches:

  • A VPN into your home network. You appear to be at home, and no sharing port is exposed at all. Many routers already include this.
  • Your storage maker's official service, which handles outside connections without opening anything on the router.

The risks of opening ports, and when it's justified, are in port forwarding on your router.

Cleaning up what's already there

Shares accumulate unnoticed, because nothing reminds you. Once a year, review:

  • The list of currently shared folders on each computer. There's nearly always one created years ago to move a single file.
  • Accounts that still have access on network storage, including those of people who no longer work or live there.
  • Devices still joined to your Wi-Fi (devices on your network).

If your Wi-Fi password is old and has been handed out widely, changing it is the fastest way to empty that list (changing your Wi-Fi password). And if there are signs your network has been compromised, the steps are in what to do after your Wi-Fi is hacked.

Frequently asked questions

Is sharing a folder on a home network dangerous?

No, as long as the network really only holds your own devices and the folder requires a password. What's dangerous is a password-free share on a network also used by guests, tenants, or neighbours.

Why does my laptop ask whether a network is public or private?

Because the answer decides whether your computer may be visible and shareable to other devices there. Choose public for every network outside your own home or office, including rentals, hotels, and cafes.

How do I safely reach my files from outside?

Through a VPN into your home network, or your storage maker's official service. Don't expose file-sharing ports to the internet; that protocol was designed for closed networks and is a favourite of automated scanners.