How to Protect Files from Unauthorized Access on Windows and Mac
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.
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).
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.
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.
- Right-click the folder or file you want to protect and select Properties.
- Navigate to the Security tab.
- Click Edit to change permissions.
- Select the user you want to block (or click Add to find them).
- Check the box under the Deny column for Full control.
- Click Apply and then OK.
Windows NTFS File Permissions Explained
When modifying the Security tab, you will encounter specific permission levels. Here is exactly what they mean:
- 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.
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.
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.
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 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.
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
| 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.
- Install the Software: Download and install Folder Lock. Launch the application.
- 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.
- Select 'Lock Files': Navigate to the "Lock Files" module in the left-hand menu.
- Drag and Drop: Simply drag the files, folders, or entire drives you want to protect into the main window.
- 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.
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:
- Check your secure password manager if you use one.
- Check the email address associated with your software license for any saved recovery keys generated during initial setup.
- If you are receiving a Windows "Access is denied" error on a file you own, right-click the file, go to Properties > Security > Advanced, and ensure your current user account is listed as the Owner. You may need Administrator privileges to take ownership.
Pricing: What You Get
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
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.