Preventing Unauthorized Programs from Reading Files in Windows 10

Abstract: Block unauthorized programs from reading personal files in Windows 10 by configuring NTFS Access Control Lists to deny read permissions.

Created: 2026-08-16 by
You can prevent unauthorized programs from reading your personal files in Windows 10 by configuring Access Control Lists (ACLs) through the Security tab of file properties. This native feature allows you to remove "Read" permissions for specific users or groups, effectively blocking applications that do not have explicit administrative privileges from accessing those directories.

Understanding NTFS Permissions

Windows 10 uses the NTFS file system, which supports detailed security descriptors attached to every file and folder. These descriptors contain an Access Control List (ACL) that defines who can access the object and what actions they can perform. The four primary permission types are Read, Write, Modify, and Full Control. By default, most user folders grant "Read & Execute" to the current user and sometimes to other users on the same machine. To stop a rogue program or malware from snooping on your documents, you must alter these defaults to deny read access to standard user accounts. It is important to note that while this method is robust, it does not make data immune to all threats. A process running with SYSTEM or Administrator privileges can often bypass these restrictions. Therefore, this strategy works best when combined with good hygiene practices, such as avoiding running unknown executables as an administrator. For more context on how malware might behave, you might find Windows 10 CMD Command Prompt opens and closes for split second. Possible Malware? helpful, as it discusses common infection vectors that could attempt to bypass such controls.

Step-by-Step Guide to Restricting Access

To lock down a specific folder, follow these precise steps. You must be logged in as an administrator to modify these settings.
  1. Navigate to the Folder: Open File Explorer and locate the directory you wish to protect, such as C:\Users\YourName\Documents\Secret.
  2. Open Properties: Right-click the folder and select Properties from the context menu.
  3. Access the Security Tab: Click the Security tab at the top of the window. If you cannot see this tab, ensure you are viewing standard file properties and not any special view modes.
  4. Edit Permissions: Click the Edit... button. You will see a list of Groups or Users. Select the group you want to restrict, typically Users, which represents standard user accounts.
  5. Deny Read Access: In the bottom pane, look for the Deny column. Check the box next to Read & execute, List folder contents, and Read. It is crucial to check the Deny box rather than leaving the Allow box unchecked. Explicitly denying access takes precedence over any allow rules.
  6. Apply Changes: Click Apply and then OK. Windows may display a warning that denying permissions can cause issues. Confirm that you want to proceed.
After applying these changes, any program running under a standard user account will receive an "Access Denied" error when trying to open files in that folder. However, if you need to temporarily access the files yourself, you may need to re-enable permissions or use an elevated command prompt. If you encounter errors during this process, such as being unable to change permissions because a file is locked, refer to Cannot change permissions in Windows 10 because the file is being used by another process for troubleshooting steps.

Handling Inheritance Issues

One common pitfall in securing folders is dealing with permission inheritance. By default, subfolders and files inherit permissions from the parent folder. When you apply a Deny rule to a parent folder, it propagates down to all children. This can sometimes break legitimate applications that rely on reading configuration files within those directories. If an application stops working after you secure a folder, you may need to adjust the inheritance settings. In the Advanced Security Settings window, click Disable inheritance. From there, you can convert inherited entries into explicit entries for each object, allowing you to fine-tune permissions for specific sub-items without breaking the entire hierarchy. Be cautious here, as manual adjustment increases complexity and the risk of misconfiguration.

Limitations and Best Practices

While ACLs provide a strong barrier against casual snooping and many types of malware, they are not a silver bullet. They do not encrypt data at rest; a physical thief with bootable media can still copy the raw disk sectors. For true confidentiality, consider using BitLocker or EFS (Encrypting File System), though EFS has its own complexities regarding key recovery. Additionally, remember that this protection only applies to local file system access. Network shares, cloud sync services, and memory dumps created by debugging tools may still expose data depending on their configuration. Always combine file permissions with strong passwords, two-factor authentication, and regular updates to keep your system secure.

Frequently Asked Questions

Will this stop my antivirus from scanning the folder?

No, modern antivirus software runs with high-level privileges, often as SYSTEM, which bypasses standard user ACLs. Your security suite should still be able to scan the files normally unless you explicitly deny access to the antivirus service account itself.

Can I recover files if I accidentally deny myself access?

Yes, but you must take ownership of the folder first. Right-click the folder, go to Properties > Security > Advanced, and change the Owner to your user account. Once you are the owner, you can edit the permissions again to restore your access rights.

Does this work on external drives formatted as FAT32?

No, FAT32 and exFAT file systems do not support NTFS-style ACLs. This method only works on drives formatted as NTFS. If you need to secure external drives, consider using BitLocker To Go or encryption software that operates at the volume level.

What happens if I deny 'Write' instead of 'Read'?

Denying 'Write' prevents modification or deletion of files but still allows programs to read them. To prevent unauthorized programs from reading your private data, you must specifically deny 'Read' and 'Read & Execute' permissions.

Is it safer to hide the folder instead of changing permissions?

No, hiding a folder via the Attributes dialog is not a security measure. Any user or program can easily unhide the folder. Changing ACLs is a much more robust method because it actively blocks access attempts at the kernel level.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More