logo
search
File Sharing Problems

How to Prevent Editing and Downloading of OneDrive Shared Files

Huma Ashraf ChHuma Ashraf Ch Sep 30, 2026 868 views

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.

How to Prevent Editing and Downloading of OneDrive Shared Files
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 you start

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.

Solution 1Recommended

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.

1
Select the specific file

Navigate to the file inside your OneDrive folder, right-click on it, and select 'Share' from the context menu.

2
Open Link settings

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.

3
Set to View Only

Under the permissions section, uncheck the 'Allow editing' box. This converts the link to a view-only permission.

4
Enable Block Download

Once 'Allow editing' is disabled, toggle the 'Block download' switch to the 'On' position.

5
Apply and Share

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 the Specific File with 'Block Download' Enabled
Feature Availability: The 'Block download' option is only visible and available when the 'Allow editing' option is unchecked.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system (Windows, Mac, or Linux).
  2. 2. Install the Suite: Run the downloaded file and follow the quick, on-screen prompts to complete the installation.
  3. 3. Open and Edit Microsoft Formats: Launch WPS Office to instantly open, edit, and secure your existing Microsoft Office documents without format loss.
Free to use with a lightweight installation that won't slow down your deviceFully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx)Built-in document encryption and password protection to secure your files locally before cloud uploadFamiliar, tabbed user interface for easy multitasking and quick migration
microsoft office alternative - wps office

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.