GiliSoft File Lock Pro

GiliSoft File Lock Pro is a file and folder locker that protects private files and important data from unwanted access, changes, loss, or leaks.

  • Hide files, folders, and local drives
  • Lock or protect files, folders, and drives
  • Monitor folder changes and review activity logs
Protect files with GiliSoft File Lock Pro

3 Ways to Prevent a File from Being Renamed or Deleted

Updated on July 23, 2026   |   By GiliSoft Editorial Team

There may be files on your computer that you do not want other people to rename, edit, move, or delete. Windows does not apply this kind of protection automatically, so you need to choose and configure a suitable protection method.

This guide follows three practical approaches: changing Windows file permissions, protecting the file with GiliSoft File Lock Pro, or hiding the target file from ordinary File Explorer views. Each method works differently, so choose according to how visible and accessible the file should remain.

Method 1. Protect a File by Changing Windows Permissions

This method uses Windows Advanced Security Settings and does not require another application. It is best suited to administrators or experienced Windows users because an incorrect Deny rule can also affect opening, saving, moving, or deleting the file.

  1. Right-click the file you want to protect and choose Properties.
  2. Open the Security tab and select Advanced.
Open Advanced Security Settings for a Windows fileOpen the Security tab and choose Advanced.
  1. In Advanced Security Settings, review the owner and inherited permission entries. Select Disable inheritance only if the file needs a separate explicit rule.
Disable inherited permissions for a Windows fileDisable inheritance before creating a separate permission rule.
  1. Choose Convert inherited permissions into explicit permissions so the existing entries remain available for review.
Convert inherited permissions to explicit permissionsConvert the inherited entries instead of removing every rule immediately.
  1. Select the user or group to restrict, choose Edit, and configure the minimum permission needed to stop unwanted rename or delete operations.
  2. Apply the change, then test rename, open, save, move, and delete behavior with the restricted Windows account.
Change advanced Windows file permissionsApply a narrowly scoped rule to the correct user or group.
Important: Windows does not provide a simple per-file switch named "Do not rename." Renaming is connected to delete and parent-folder permissions, so a rule that blocks renaming may also block deleting, moving, overwriting, or saving the file.

Method 2. Prevent Renaming with GiliSoft File Lock Pro

If you prefer an easier method, use GiliSoft File Lock Pro. It is designed to lock, hide, and protect files, folders, local drives, external drives, and shared folders without requiring you to build Windows permission rules manually.

For a file that should remain visible and readable but should resist unwanted changes, use the Protecting File function.

  1. Open GiliSoft File Lock Pro and enter the master password.
  2. Choose Local Disk > Protecting File.
  3. Select Protect Files/Folders and add the target file, folder, or drive.
  4. Apply protection and confirm that unauthorized rename, move, edit, or delete operations are blocked.
Protect files from being renamed with GiliSoft File Lock ProAdd a file, folder, or drive to the Protecting File list.

Protect files without editing NTFS permission entries

File Lock Pro provides visible file protection, password-controlled locking, hiding, encryption, folder monitoring, and secure deletion from one Windows application.

GiliSoft File Lock Pro box

Method 3. Protect the Target File by Hiding It

Another option is to hide the target file so it does not appear in ordinary File Explorer views. This can reduce accidental access, but it is not equivalent to rename protection because anyone who enables hidden items can reveal the file again.

  1. Right-click the target file and choose Properties.
  2. Under the General tab, select the Hidden attribute.
  3. Choose OK to apply the change.
Hide a Windows file from ordinary File Explorer viewsThe Hidden option reduces casual visibility but does not add access control.

How to View Hidden Files Again

  1. Open File Explorer.
  2. On Windows 11, choose View > Show > Hidden items. On Windows 10, open the View tab and select Hidden items.
  3. Return to the file Properties dialog and clear the Hidden attribute when you no longer need it concealed.

Final Words

Windows permissions can prevent renaming when they are configured carefully, but they require account-specific testing and can affect related file operations. Hiding a file is useful only for reducing casual visibility. For a simpler way to keep important files visible while controlling unwanted changes, GiliSoft File Lock Pro provides a dedicated Protecting File mode together with locking, hiding, monitoring, encryption, and secure deletion tools.

Frequently Asked Questions

Does the Read-only attribute prevent a file from being renamed?

No. Read-only can affect how some applications save content, but it does not reliably stop File Explorer from renaming or deleting a file.

Can I protect a whole folder instead of adding files one by one?

Yes. File Lock Pro can protect a selected folder, which is more practical when several related files need the same protection.

Keep important files under your control

Use GiliSoft File Lock Pro to protect files and folders from unwanted renaming, editing, moving, or deletion.

View GiliSoft File Lock Pro