May 23, 2024

Having trouble modifying the Windows 10 Hosts file due to access denied error? Let’s explore how to fix this issue.

Recently, Fortect has become increasingly popular as a reliable and efficient way to address a wide range of PC issues. It's particularly favored for its user-friendly approach to diagnosing and fixing problems that can hinder a computer's performance, from system errors and malware to registry issues.

  1. Download and Install: Download Fortect from its official website by clicking here, and install it on your PC.
  2. Run a Scan and Review Results: Launch Fortect, conduct a system scan to identify issues, and review the scan results which detail the problems affecting your PC's performance.
  3. Repair and Optimize: Use Fortect's repair feature to fix the identified issues. For comprehensive repair options, consider subscribing to a premium plan. After repairing, the tool also aids in optimizing your PC for improved performance.

Run Notepad with Administrator Privileges

Notepad icon

Once Notepad is open with Administrator privileges, navigate to the Hosts file by going to C:\Windows\System32\drivers\etc. Open the Hosts file in Notepad by selecting “All Files” from the drop-down menu in the bottom right corner of the dialog box.

Make the necessary changes to the Hosts file, then save the file and close Notepad.

Modify File Attributes to Remove Read-Only Status

Windows file properties window

  • Right-click on the Hosts file and select Properties.
  • Under the General tab, uncheck the box next to Read-only.
  • Click Apply and then OK to save the changes.

Adjust Security Settings for Enhanced Access

Relocate the Hosts File to a New Directory

Make sure to back up the Hosts file before making any changes to prevent data loss.

See also  Windows Firewall Not Blocking Program: Easy Steps

Frequently Asked Questions

How do I change permissions in hosts file?

To change permissions in the hosts file, you can press the Windows key, type Notepad in the search field, right-click Notepad in the search results, and select Run as administrator. Then, open the hosts file located at c:\Windows\System32\Drivers\etc\hosts, make your desired changes, and select File > Save to save the changes.

Why can’t I edit my hosts file?

You can’t edit your hosts file because you need to run Notepad as administrator in order to make changes.

How do I reset my hosts file to unblock websites?

To reset your hosts file and unblock websites, you can navigate to the folder where the hosts file is located, open it, and add a comment symbol # to the beginning of the line containing the blocked website you want to unblock.

How do I open hosts as administrator?

To open hosts as an administrator, right-click and select “Run as administrator.” Then, navigate to C:\Windows\System32\Drivers\etc in Notepad, select All Files, and open the hosts file to make edits.

Was this article helpful?
YesNo