Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Mime types

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Administration Website Isolated?  
Author Message
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 1) Posted: Thu Apr 08, 2004 11:26 am
Post subject: Mime types
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,

I've been searching around for some time now and cannot find an answer to my
question.
I know that is possible to register more MIME types into a website, and even
a folder. But can you restrict mime types for one folder.

Example: I have a folder /test under www.somesite.com. From this folder I
would like to restrict GIF files from being downloaded. The best scenario
would be to only allow asp files to be parsed and nothing else. The purpose
is that I want to authenticate download of resources in a folder. I cannot
move the files due to design restrictions in another part of the system.
When a user uploads a file, lets say, Image.gif, an asp file is
automatically created with the namne Image.gif.asp that takes care of
authentication and creating the stream. The whole idea might be bad, thats
why I'm asking you guys.

Thanks
/Johan

 >> Stay informed about: Mime types 
Back to top
Login to vote
user1035

External


Since: Nov 02, 2003
Posts: 93



(Msg. 2) Posted: Thu Apr 08, 2004 11:26 am
Post subject: Re: Mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You could create a Virtual Directory to the folder and set the MIME type
that way... it will work.

--


Regards,

Carroll P. MacDonald

 >> Stay informed about: Mime types 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 3) Posted: Thu Apr 08, 2004 9:35 pm
Post subject: Re: Mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In addition to what other have said:

If you are afraid of "hot linking" stealing bandwidth from you, it would be
a nicer solution to have an ISAPI filter. One of the benefits is that it
will not execute an asp file every time someone downloads an image. ISAPI
filter should in general work faster.

--
Regards,
Kristofer Gafvert - IIS MVP
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.
<a style='text-decoration: underline;' href="http://www.ilopia.com/" target="_blank">http://www.ilopia.com/</a>


"Johan Karlsson" <johan.karlsson.TakeThisOut@adnome.se> wrote in message
news:%23Gcz4JTHEHA.3748@tk2msftngp13.phx.gbl...
 > Hi,
 >
 > I've been searching around for some time now and cannot find an answer to
my
 > question.
 > I know that is possible to register more MIME types into a website, and
even
 > a folder. But can you restrict mime types for one folder.
 >
 > Example: I have a folder /test under <a style='text-decoration: underline;' href="http://www.somesite.com." target="_blank">www.somesite.com.</a> From this folder I
 > would like to restrict GIF files from being downloaded. The best scenario
 > would be to only allow asp files to be parsed and nothing else. The
purpose
 > is that I want to authenticate download of resources in a folder. I cannot
 > move the files due to design restrictions in another part of the system.
 > When a user uploads a file, lets say, Image.gif, an asp file is
 > automatically created with the namne Image.gif.asp that takes care of
 > authentication and creating the stream. The whole idea might be bad, thats
 > why I'm asking you guys.
 >
 > Thanks
 > /Johan
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Mime types 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 4) Posted: Fri Apr 09, 2004 12:53 am
Post subject: Re: Mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

Thanks for your answer. It's more of a security reason, making sure people
don't steel images or documents.

/Johan

"Kristofer Gafvert" <kgafvert.TakeThisOut@NEWSilopia.com> wrote in message
news:upg4$dYHEHA.1048@TK2MSFTNGP12.phx.gbl...
 > In addition to what other have said:
 >
 > If you are afraid of "hot linking" stealing bandwidth from you, it would
be
 > a nicer solution to have an ISAPI filter. One of the benefits is that it
 > will not execute an asp file every time someone downloads an image. ISAPI
 > filter should in general work faster.
 >
 > --
 > Regards,
 > Kristofer Gafvert - IIS MVP
 > Reply to newsgroup only. Remove NEWS if you must reply by email, but
please
 > do not.
<font color=purple> > <a style='text-decoration: underline;' href="http://www.ilopia.com/</font" target="_blank">http://www.ilopia.com/</font</a>>
 >
 >
 > "Johan Karlsson" <johan.karlsson.TakeThisOut@adnome.se> wrote in message
 > news:%23Gcz4JTHEHA.3748@tk2msftngp13.phx.gbl...
  > > Hi,
  > >
  > > I've been searching around for some time now and cannot find an answer
to
 > my
  > > question.
  > > I know that is possible to register more MIME types into a website, and
 > even
  > > a folder. But can you restrict mime types for one folder.
  > >
  > > Example: I have a folder /test under <a style='text-decoration: underline;' href="http://www.somesite.com." target="_blank">www.somesite.com.</a> From this folder
I
  > > would like to restrict GIF files from being downloaded. The best
scenario
  > > would be to only allow asp files to be parsed and nothing else. The
 > purpose
  > > is that I want to authenticate download of resources in a folder. I
cannot
  > > move the files due to design restrictions in another part of the system.
  > > When a user uploads a file, lets say, Image.gif, an asp file is
  > > automatically created with the namne Image.gif.asp that takes care of
  > > authentication and creating the stream. The whole idea might be bad,
thats
  > > why I'm asking you guys.
  > >
  > > Thanks
  > > /Johan
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Mime types 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 5) Posted: Fri Apr 09, 2004 12:56 am
Post subject: Re: Mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

Thanks for your answer!

I can only find a place to add (allow) more MIME types on a folder or
virtual dir, how do I restrict a mime type?

/Johan

"Carroll P. MacDonald" <!0000@!00.000> wrote in message
news:%23CpfLwVHEHA.2480@tk2msftngp13.phx.gbl...
 > You could create a Virtual Directory to the folder and set the MIME type
 > that way... it will work.
 >
 > --
 >
 >
 > Regards,
 >
 > Carroll P. MacDonald
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Mime types 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 6) Posted: Fri Apr 09, 2004 1:02 am
Post subject: Re: Mime types [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi again!

Tested another thing. Removing the read permission from a folder seems to
block most types, but still allows ASP script to parse.

Any drawbacks using this "option"?

/Johan


"Carroll P. MacDonald" <!0000@!00.000> wrote in message
news:%23CpfLwVHEHA.2480@tk2msftngp13.phx.gbl...
 > You could create a Virtual Directory to the folder and set the MIME type
 > that way... it will work.
 >
 > --
 >
 >
 > Regards,
 >
 > Carroll P. MacDonald
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Mime types 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]