HTML links to local network shares

joshcomley picture joshcomley · Sep 23, 2009 · Viewed 71.9k times · Source

Why do these links not work? If I click on them in FF or Chrome, nothing happens - it doesn't even try to open them!

<a href="file://someshare/dir/subdir/file.txt">Linky</a>
<a href="file:////someshare/dir/subdir/file.txt"> Linky</a>
<a href="file://\\someshare\dir\subdir\file.txt">Linky</a>

Any ideas?

Answer

Peter picture Peter · Sep 23, 2009

In general, this is disabled because it is a security risk. See also this question: Cross-browser link to file on local system, and the link provided by sleske to here.