|
ECS-L Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Re: [ECS] .BAT extension override in HTML ? Ingo Pakleppa Sat, 15 Jul 2000 14:10:55 -0700 |
You can't do it on a per-HTML basis because that would allow any Web site
to launch any program on the user's machine. Big security hole (in fact, it
used to be possible in some circumstances especially in IE, but that
security hole has been plugged).
You can, however, configure the Web server to send this file as a text
document by sending the appropriate mime type - because that's what really
matters. The extension will only be used if the server doesn't send a mime
type. That is, if you have enough control over the Web server! You may need
to talk to your ISP about that. Note that many Web servers will derive the
mime-type from the extension, so they might have to change the association
for all .BAT files, and may be reluctant to do that.
Ingo
At 12:53 PM 7/15/00 -0400, Mark Gilmore wrote:
>Anyone know if it is possible in HTML to override the
>browser's treatment of a file extension ?
>For example, I would like to link to batch files (*.BAT)
>in the ECS manual, such that the reader could click the
>file to VIEW it (NOT execute it).
>tanx
>--
>Mark Gilmore
>Omnipotence (ECS home automation software)
>http://www.usit.com/omnip
>423-745-0026
>Hours: Mon-Sat, 9AM-8PM/EST
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects