How to Prevent Editing and Downloading of OneDrive Shared Files
Question details
The user wants to know how to share a specific file within a OneDrive folder via an 'anyone with the link' URL, allowing users to view the file while preventing them from editing or downloading it.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Sharing content securely from a OneDrive folder by applying granular permissions to a single file to restrict unwanted edits and downloads.
- Observed behavior
- Folder permissions automatically apply to all contents inside the folder, making it impossible to apply separate download and edit restrictions on just a single file without modifying how the file is shared.
Before modifying your sharing settings, note that OneDrive folder-level permissions inherit to all files within them. To restrict a single file securely, you will need to bypass the folder's general 'anyone' link and share the file directly.
Share the Specific File with 'Block Download' Enabled
Generate a unique, view-only sharing link for the individual file and enable the block download feature to enforce strict restrictions.
Because folder permissions cascade to the files inside, an 'anyone can edit' link on a folder grants edit access to every file it contains. To prevent this for a specific file, you must stop sharing it through the folder link and create a direct sharing link exclusively for that file.
Navigate to the file inside your OneDrive folder, right-click on it, and select 'Share' from the context menu.
In the sharing dialog box, click on the gear icon or the current sharing permission text (e.g., 'Anyone with the link can edit') to open the Link settings.
Under the permissions section, uncheck the 'Allow editing' box. This converts the link to a view-only permission.
Once 'Allow editing' is disabled, toggle the 'Block download' switch to the 'On' position.
Click 'Apply' to save these settings, then copy the link or enter the email addresses of the people you want to share it with.

Share with Specific People Instead of Anyone
Enhance file security by restricting access exclusively to specific email addresses rather than using an open, anonymous link.
Securely Create and Manage Documents with WPS Office
While cloud platforms like OneDrive handle file storage, having a secure, capable, and fast office suite is essential for preparing your documents before sharing. WPS Office is a powerful, free alternative to Microsoft Office that offers comprehensive file encryption, seamless format compatibility, and a lightweight design.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system (Windows, Mac, or Linux).
- 2. Install the Suite: Run the downloaded file and follow the quick, on-screen prompts to complete the installation.
- 3. Open and Edit Microsoft Formats: Launch WPS Office to instantly open, edit, and secure your existing Microsoft Office documents without format loss.

Frequently Asked Questions
Why can't I see the 'Block download' option in OneDrive?
The 'Block download' option is only available for view-only links. If 'Allow editing' is checked, the block download toggle will be hidden or grayed out because editing requires the ability to download the file data.
Can I block downloading on an entire OneDrive folder?
Currently, OneDrive does not support the 'Block download' feature for folders. It can only be applied to individual files. If you need to restrict downloads for multiple files, you must share each file individually.
Does setting an expiration date prevent users from downloading the file?
No, an expiration date only dictates how long the sharing link remains active. If the 'Block download' feature is not explicitly enabled, users can still download the file before the link expires.
How do I revoke access to a shared file completely?
To stop sharing a file, right-click it, select 'Manage access', and remove the sharing links or specific users listed under the permissions section.




