Nhiều ứng dụng có thể truy cập file trong thư viện lưu trữ. Bạn có thể kiểm soát hành vi này, ngăn ứng dụng truy cập Documents Library trên Windows 11/10 để bảo vệ dữ liệu khỏi phần mềm độc hại, ransomware.
Chặn ứng dụng truy cập Documents Library
Windows 11
Windows 11 cho phép cấp/khóa quyền truy cập file theo thư mục (Pictures, Videos, Documents). Cách làm:

- Chuột phải Start → Settings, hoặc Win+I.
- Chọn Privacy & security.
- Bên phải, mục App permissions → kéo xuống Documents.
- Màn hình mới, tắt công tắc Document library access.

Khi tắt, tất cả ứng dụng không còn truy cập Documents library.
Windows 10
- Win+X → Settings.
- Chọn Privacy.
- Kéo xuống Documents.
- Bên phải, mục Allow access to documents libraries on this device → nhấn Change.
- Tắt Documents Library access for this device.
Người quan tâm riêng tư sẽ thấy thiết lập này hữu ích!
Win+X → Settings → Privacy → Documents → Allow access to documents libraries on this device → Change → Tắt toggle.


Chặn truy cập Documents Library bằng Registry (Windows 11/10)
Cách thay thế bằng Registry tweak. Cảnh báo: Sai sót Registry có hậu quả nghiêm trọng. Hãy tạo System Restore Point trước.
- Win+R →
regeditEnter. - Đến đường dẫn:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\documentsLibrary

Bên phải, đặt giá trị string (REG_SZ) tên Value = Deny.
Xác nhận → ứng dụng bị chặn truy cập Documents.
Xong!
Có thể tắt tất cả quyền ứng dụng không?
Có. Windows 11: Settings → Apps → Apps & Features → chọn app → Advanced Options. Hoặc Settings → Privacy & security → App Permissions.