How can I stop users accessing local drives via Internet Explorer?

John Savill

January 8, 2000

2 Min Read
ITPro Today logo in a gray background | ITPro Today

A. If you type "C:" (or any other drive) in the MicrosoftInternet Explorer address box you will be shown the contents and if proper NTFSfile permissions are not in place users will be able to delete, rename, readany files on the disk. This is usually a problem if you have a locked downenvironment where users do not normally have access to Explorer etc (such as anInternet Cafe).

To stop the ability to view local drives from Internet Explorer perform thefollowing:

  1. Start the registry editor (regedit.exe)

  2. Move toHKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer

  3. From the Edit menu select New > DWORD value.

  4. Enter a name of NoRun and press Enter

  5. Double click the new value and set to 1. Click OK to close the value editdialog.

  6. From the Edit menu select New > DWORD value.

  7. Enter a name of NoDrives and press Enter

  8. Double click the new value and set to a number representing the drives youwish to hide (explained below). Click OK to close the value edit dialog.

  9. For IE 4.01 SP1 and above perform the following steps:
    1. From the Edit menu select New > DWORD value.
    2. Enter a name of NoFileUrl and press Enter
    3. Double click the new value and set to 1. Click OK to close the value editdialog.

  10. Close the registry editor

The NoRun setting disables viewing local files by typing a file address orURL (for example, "file://d:") in the Address box, and also disablesthe Run command on the Start menu.

The NoDrives setting disables the selected drives. It is explained in 'Q. How can I hide drive x from users?'. Basically drive A is1, B is 2, C is 4, D is 8 etc. and you add the values together. So to hidedrive C and D, you would add 4 and 8 which is twelve or C in hexadecimal andset NoDrives to C (selecting Hex mode).

Additional restrictions can be applied to IE 4.01 Service Pack 2 and IE 5.0which are described in 'Q. What additionrestrictions are available in Internet Explorer IE4.01 SP2 and above?'

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like