FileSecurityHub

How to Protect Files from Unauthorized Access on Windows and Mac

Quick Answer

The fastest way to protect files from unauthorized access locally is by modifying NTFS permissions (Windows) or Get Info privileges (Mac) to deny read access to other users. For complete security across shared devices, external drives, or the cloud, you must use encryption software that locks the folder behind a master password, ensuring the data remains inaccessible even if the file is copied or the system is bypassed.

By the Editorial Team • Updated May 2026 • 12 min read

A comprehensive, step-by-step guide to securing your personal folders, understanding NTFS permissions, and preventing hackers, data brokers, and local users from viewing your sensitive information.

The Difference Between Data Privacy and Data Security

When discussing how to protect files and folders from others, it is crucial to understand that privacy and security are distinct disciplines. Data privacy relates to who is authorized to collect your data (like data brokers, tracking cookies, and how GDPR/CCPA protect your rights). Data security, on the other hand, is the physical or cryptographic barrier preventing unauthorized access to a file.

This guide focuses heavily on data security: practical methods to lock, encrypt, and restrict access to files sitting on your hard drive, SSD, or a shared cloud server (like Dropbox or Google Drive).

Sensitive personal data protected by file security controls
Interactive Tool

Personal Data Risk Score Calculator

Select the statements that apply to your current computer usage to calculate your localized file risk.

1. Do you share your primary computer with roommates, family members, or coworkers?

2. Do you store tax documents, passwords, or financial PDFs in plain folders?

3. Are you currently using a master password or encrypted vault for these files?

Score: Pending

Answer the questions above to assess your risk.

Method 1: Native Built-in Methods (No Software)

If you are simply trying to protect files on a shared computer from casual snooping by family members, built-in operating system features are a great starting point. They require no downloads and rely on the user accounts already set up on your machine.

Shared computer privacy and folder access security concept
While native file permissions stop casual snooping, they do not encrypt the data. If someone removes your hard drive and plugs it into another computer, they can bypass OS permissions entirely.
DIFFICULTY: EASY

How to Set Up File Access Control in Windows

Windows uses Access Control Lists (ACLs) to manage who can open, modify, or delete a file. By removing a user from the ACL, you deny them access.

Windows folder protection and native file access control demonstration
  1. Right-click the folder or file you want to protect and select Properties.
  2. Navigate to the Security tab.
  3. Click Edit to change permissions.
  4. Select the user you want to block (or click Add to find them).
  5. Check the box under the Deny column for Full control.
  6. Click Apply and then OK.
DIFFICULTY: MODERATE

Windows NTFS File Permissions Explained

When modifying the Security tab, you will encounter specific permission levels. Here is exactly what they mean:

Windows File Explorer view for managing folder permissions
  • Full Control: The user can view, edit, delete, and change the permissions of the file.
  • Modify: The user can read and edit the file, and delete it, but cannot change who else has access.
  • Read & Execute: The user can open the file and run it (if it's a program).
  • Read: The user can only view the contents.
  • Write: The user can create new files within a folder but cannot view existing ones (used mostly for drop-boxes).

The Tool We Recommend for Complete Security

Of all the methods we test to prevent unauthorized access to files, native OS permissions fall short when dealing with portable drives, advanced users, or cloud syncing. For true peace of mind, we recommend Folder Lock.

Folder Lock 10 feature banner for file encryption and access control
Folder Lock Dashboard Interface showing secure lockers and encrypted files

Why We Recommend It

Instead of just hiding files or telling Windows not to let other accounts open them, Folder Lock uses 256-bit AES encryption to scramble the data itself. Even if a hacker dumps your credentials or someone steals your laptop, the files are mathematically unreadable without the master password.

Folder Lock mobile application showing cloud backup integration with Dropbox and secure wallets
Cross-platform synchronization for encrypted vaults

True Cross-Platform Syncing

Whether you are operating on a Windows PC, a Mac running macOS 13 or newer, or mobile devices via iOS and Android apps, your encrypted vaults sync flawlessly across your ecosystem.

External hard drive support for portable encrypted file storage

Portable USB & External Drives

Convert your USB stick into a self-contained secure vault. The encryption travels with the hardware, allowing you to authenticate on different machines without installing the main software.

Secure private wallets and secrets protected in an encrypted vault

Secure Wallets & Secret Notes

Beyond standard files, the software includes dedicated modules to safeguard your credit card information, passwords, and private text notes away from prying eyes.

Folder Lock 10 file shredding screen for permanent data deletion

Data Shredding & History Cleaning

Deleting a file normally leaves recoverable traces. The built-in digital shredder ensures that your sensitive originals are permanently destroyed after they are encrypted.

Methods Comparison

Windows encryption software comparison for secure folder protection
Method Difficulty Security Level Best For Limitations
Windows Hidden Folders Very Low None Keeping desktop tidy Can be revealed with one click in View settings.
NTFS Permissions Moderate Low (Local only) Shared family PCs Fails if drive is removed; ineffective on FAT32/exFAT drives.
Folder Lock Lite Very Low Low (No Encryption) Preventing accidental deletion Hides and locks folders from view, but does not scramble the underlying data.
Folder Lock 10 (Pro) Low Military-Grade (AES-256) Financial data, external drives, cloud security Requires remembering a master password; lost passwords cannot be easily recovered.
Built-in ZIP Password Low Moderate Sending files via email Leaves the original unzipped file vulnerable if not manually deleted.

Tutorial: How to Password Protect a Folder in Windows and macOS

If you decide to use our recommended tool, here is exactly how to secure your files in under two minutes.

Step-by-step folder security setup illustration Step by step proactive data security using Folder Lock 10 software
  1. Install the Software: Download and install Folder Lock. Launch the application.
  2. Create a Master Password: You will be prompted to create a strong master password. Do not forget this password, as recovery is intentionally difficult to prevent unauthorized access.
  3. Select 'Lock Files': Navigate to the "Lock Files" module in the left-hand menu.
  4. Drag and Drop: Simply drag the files, folders, or entire drives you want to protect into the main window.
  5. Verify Protection: The items will turn green and disappear from their original Windows Explorer location. They are now secured.

To unlock them, open the application, enter your password, and click "Unlock."


Download the free version →

Troubleshooting & Verification

If you are having trouble accessing files, or if you need to verify that your protection method worked, consult this owner-safe recovery guide.

Unlocking secured data during owner-safe password recovery

How to verify your files are protected

After applying a lock or permission change, always test it. Log into a different Windows user account (a standard account, not an Admin) and attempt to navigate to the protected folder. You should receive an "Access to the folder is denied" or "Access to path is denied" error.

How to recover access to a locked folder you own

If you used Folder Lock and forgot your master password, the software is designed to prevent easy bypasses—otherwise, it wouldn't be secure against hackers. To regain access:

Pricing: What You Get

Folder Lock 10 Pro boxshot for full version pricing

Free Version

Provides a solid foundation for data protection with a 1 GB storage limit. You can synchronize your encrypted vault across up to two devices and utilize the companion mobile apps.

Full Version (Pro) — $39.95

Removes all storage restrictions. Sync your data across five different devices, share securely with unlimited users, and unlock premium tools like secure wallets, secret notes, file shredding, and portable USB lockers.

Frequently Asked Questions

General File Security

What is the difference between data privacy and data security?

Data privacy dictates who has the legal right to collect and handle your personal information (e.g., GDPR compliance, opting out of data brokers). Data security is the technical measure—like encryption or passwords—that prevents unauthorized users from physically accessing that data on your devices.

How to prevent others from accessing my files on a shared computer?

The simplest native method is assigning NTFS permissions to deny Read access to other accounts. For sensitive data, the best method is placing the files in a password-protected, encrypted vault using software like Folder Lock.

How to Password Protect ZIP File Windows Mac Linux?

On Windows and Mac, you can use built-in terminal/command line tools to encrypt ZIPs, but it's tedious. Most users rely on 7-Zip (Windows) or Keka (Mac) to apply AES-256 encryption when creating an archive. Keep in mind that archiving creates a duplicate file; you must securely delete the original unencrypted file afterward.

PDF and Application Security

Can I password protect a PDF with Adobe Reader?

The free version of Adobe Acrobat Reader does not allow you to password protect a PDF. You must use Adobe Acrobat Pro, or rely on third-party file encryption software that can lock any file type, including PDFs.

How to lock specific files from being opened by other users?

You can right-click the file, adjust the Security properties, and remove other users from the Access Control List. Alternatively, use a third-party application to apply an individual password to that specific file.

Our Verdict

Security shield protecting encrypted files and folders

While native Windows and Mac permissions are adequate for keeping honest people out of your folders, they offer zero protection if your device is stolen, booted in safe mode, or uploaded to a shared cloud drive. For genuine data security that encrypts the file at a mathematical level, a dedicated tool is required. We highly recommend Folder Lock for its ease of use and military-grade encryption.