473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

<a href="file://C:\temp" target="_blank">C:\temp</a> does not work in IE anymore !

Hi,
in our webpage, a user could open a windows explorer to his temp
directory with a simple link and usage of the file protocol:
<a href="file://C:\temp" target="_blank">C:\temp</a>

This worked very well a long time, but now it does not work anymore.

We use IE6 and Microsoft Windows XP Professional 2002 SP2.

I guess it has something to do with new IE security features. Does
anybody know a workaround or how we can disable this IE behaviour.

Thanks
Dieter
Jul 23 '05 #1
10 60671
Dieter Salath? said the following on 11/22/04 13:51:
in our webpage, a user could open a windows explorer to his temp
directory with a simple link and usage of the file protocol:
<a href="file://C:\temp" target="_blank">C:\temp</a>
I think it should be three slashes instead of two:

<a href="file:///c:\temp" ...

... but since I don't have a M$ system anymore I can't verify that.
This worked very well a long time, but now it does not work anymore.

We use IE6 and Microsoft Windows XP Professional 2002 SP2.
I guess it doesn't work since you installed SP2, correct? It introduces
numerous problems, but I don't know the work around for it (other then
uninstalling SP2 if that's possible at all).
I guess it has something to do with new IE security features. Does
anybody know a workaround or how we can disable this IE behaviour.


You could try to change the zones for IE, but that's way out of my league.

--
Regards
Harrie
Jul 23 '05 #2

"Dieter Salath?" <sa*****@freesurf.ch> wrote in message
news:69*************************@posting.google.co m...
Hi,
in our webpage, a user could open a windows explorer to his temp
directory with a simple link and usage of the file protocol:
<a href="file://C:\temp" target="_blank">C:\temp</a>

This worked very well a long time, but now it does not work anymore.

We use IE6 and Microsoft Windows XP Professional 2002 SP2.

I guess it has something to do with new IE security features. Does
anybody know a workaround or how we can disable this IE behaviour.


If it's a question about IE configuration rather than authoring HTML, you'll
probably get a better response in an IE-related newsgroup. My HTML-related
observation is that technically the href should have three slashes after the
colon, and the backslash should also be a slash.

Jul 23 '05 #3
"Dieter Salath?" wrote in comp.infosystems.www.authoring.html:
in our webpage, a user could open a windows explorer to his temp
directory with a simple link and usage of the file protocol:
<a href="file://C:\temp" target="_blank">C:\temp</a>

This worked very well a long time,


I doubt that it ever worked. You'd need three slashes after the
file:, not two. You should also have a slash not backslash after c:,
though I believe Windows-based browsers aren't too fussy about that.

The larger issue is that you're only _guessing_ at the location of
the temp directory.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 23 '05 #4
Dieter Salath? wrote:
in our webpage, a user could open a windows explorer to his temp
directory with a simple link and usage of the file protocol: <a
href="file://C:\temp" target="_blank">C:\temp</a>
Exposing a security vulnerability.
This worked very well a long time
In spite of the malformed url?
but now it does not work anymore.

We use IE6 and Microsoft Windows XP Professional 2002 SP2.

I guess it has something to do with new IE security features.
Precisely so.
Does anybody know a workaround or how we can disable this IE
behaviour.


You want to reintroduce the security vulnerability? Strange request.
Well, no, I don't know how to make your users' systems more vulnerable.

--
Brian (remove "invalid" to email me)
Jul 23 '05 #5
"Harlan Messinger" <h.*********@comcast.net> wrote in message news:<30*************@uni-berlin.de>...
If it's a question about IE configuration rather than authoring HTML, you'll
probably get a better response in an IE-related newsgroup. My HTML-related
observation is that technically the href should have three slashes after the
colon, and the backslash should also be a slash.


That's actually a "URI-related" observation, not specifically
HTML-related.

If this issue is actually to be discussed in the context of authoring
for the WWW, then one needs also to consider how it works (or fails to
work) in browsers other than IE; I believe that Mozilla, for one, also
has security features that limit where you can use "file:" URIs.

--
Dan
Jul 23 '05 #6
da*@tobias.name (Daniel R. Tobias) wrote:
"Harlan Messinger" <h.*********@comcast.net> wrote in message news:<30*************@uni-berlin.de>...
If it's a question about IE configuration rather than authoring HTML, you'll
probably get a better response in an IE-related newsgroup. My HTML-related
observation is that technically the href should have three slashes after the
colon, and the backslash should also be a slash.
That's actually a "URI-related" observation, not specifically
HTML-related.


But knowing the correct value domains for HTML attributes is
HTML-related. ;-)

If this issue is actually to be discussed in the context of authoring
for the WWW, then one needs also to consider how it works (or fails to
work) in browsers other than IE; I believe that Mozilla, for one, also
has security features that limit where you can use "file:" URIs.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 23 '05 #7
> Exposing a security vulnerability.

Yes, thats why we did not open the file itself, but only the directory
containing the file. However windows make no difference beetween
opening a file and a directory, and in my optinon, this makes sense.
In spite of the malformed url?
Yes, browsers (IE, Firefox, Netscape) are pretty fault-tolerant in
this case. This is not the reason.
You want to reintroduce the security vulnerability? Strange request.
Well, no, I don't know how to make your users' systems more vulnerable.


The reason is the SP2 for Windows XP. SP2 has new security features,
which do not allow the file protocol anymore.

Dieter
Jul 23 '05 #8
On 23 Nov 2004 02:54:36 -0800, Dieter Salath? <sa*****@freesurf.ch> wrote:
Exposing a security vulnerability.


Yes, thats why we did not open the file itself, but only the directory
containing the file. However windows make no difference beetween
opening a file and a directory, and in my optinon, this makes sense.
In spite of the malformed url?


Yes, browsers (IE, Firefox, Netscape) are pretty fault-tolerant in
this case. This is not the reason.
You want to reintroduce the security vulnerability? Strange request.
Well, no, I don't know how to make your users' systems more vulnerable.


The reason is the SP2 for Windows XP. SP2 has new security features,
which do not allow the file protocol anymore.


Opera 7.54 also doesn't allow this, except in files loaded from your own
machine anyway. This was a change from earlier versions that did allow it.
Well, time to put everything on a proper webserver. There are several
light-weight freeware servers you can run on localhost.

--
Rijk van Geijtenbeek

The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen

Jul 23 '05 #9
On Tue, 23 Nov 2004, Dieter Salath? wrote:
The reason is the SP2 for Windows XP. SP2 has new security features,
which do not allow the file protocol anymore.


If that's your specific problem, then I don't know why you had to go
and exacerbate it by using defective URL syntax, and trying to open a
new window. The first rule of problem resolution is to remove
extraneous details, and focus down on the specific problem.

I'd suggest reading
http://www.microsoft.com/technet/pro...1341211tt20120
and searching for the string "file://" (without the quotes) and taking
it from there.

That was the technet article that I found when I searched for your
problem: it's entitled:

Changes to Functionality in Microsoft Windows XP Service Pack 2
Part 5: Enhanced Browsing Security

It appears that the user (or their sysadmin) can configure this. Of
course, they'd need some reason to trust you first.

Disclaimer: I haven't personally tried this. YMMV.

hth. Not really an issue that's relevant to "authoring HTML for
the WWW", by the way. A browser- or OS-oriented group might have been
more appropriate IMHO.
Jul 23 '05 #10
tong
1
user must add their server into the trust zone..then they can link from html into his local HD.

This work for me.
May 22 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.