webfolder mime type restrictions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > webfolder mime type restrictions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    webfolder mime type restrictions  
peterw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10:53 PM

Hello,

Is it possible to restrict what type of files users can upload to webfolders
in w2k3 / IIS 6.0 (for example no executables)?

Thanks,

Peter






[ Post a follow-up to this message ]



    Re: webfolder mime type restrictions  
Christian Paparelli


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10:53 PM

"peterw" <peterw@discussions.microsoft.com> ha scritto nel messaggio
news:CAAB5488-612D-4517-ADF5-12F593B19F5E@microsoft.com...
> Hello,

Hi

> Is it possible to restrict what type of files users can upload to
> webfolders
> in w2k3 / IIS 6.0 (for example no executables)?

what kind of service do you use for upload?


--
Christian Paparelli
http://www.ithost.ch







[ Post a follow-up to this message ]



    Re: webfolder mime type restrictions  
peterw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10:53 PM

No particular service to my knowledge, just by dragging a file from the
windows explorer to the webfolder.

"Christian Paparelli" wrote:

> "peterw" <peterw@discussions.microsoft.com> ha scritto nel messaggio
> news:CAAB5488-612D-4517-ADF5-12F593B19F5E@microsoft.com... 
>
> Hi
> 
>
> what kind of service do you use for upload?
>
>
> --
> Christian Paparelli
> http://www.ithost.ch
>
>
>





[ Post a follow-up to this message ]



    Re: webfolder mime type restrictions  
Christian Paparelli


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10:53 PM

"peterw" <peterw@discussions.microsoft.com> ha scritto nel messaggio
news:27451C2A-9AC5-455E-87DB-1D31A4B6D06F@microsoft.com...
> No particular service to my knowledge, just by dragging a file from the
> windows explorer to the webfolder.

no sorry iis doesn't permit file type restictions


--
Christian Paparelli
http://www.ithost.ch







[ Post a follow-up to this message ]



    Re: webfolder mime type restrictions  
Jeff Fink


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-05-05 10:53 PM


"peterw" <peterw@discussions.microsoft.com> wrote in message
news:CAAB5488-612D-4517-ADF5-12F593B19F5E@microsoft.com...
> Is it possible to restrict what type of files users can upload to
webfolders
> in w2k3 / IIS 6.0 (for example no executables)?

In general, putting a filter on the upload mechanism will not solve your
problem.  The user can just find something that is permitted (ASP for
example) and install their own upload mechanism that bypasses your
protections.

If you're really trying to prevent executables from being run via the web
site, you can turn off executable permission for all users using NT
permissions.  I don't have 2003, but in 2000 if you go to the folder's
security and click Advanced, you can turn off the "Traverse Folder / Execute
File" permission to stop executables from being run.

If you're looking for a solution where you can filter out specific file
types, you could write an ISAPI filter, catch the SF_NOTIFY_URL_MAP
notification determine if the file being requested is illegal via your
policy.  If so, you can change the result to point at a file indicating so
or return an error.

-Jeff








[ Post a follow-up to this message ]



    Re: webfolder mime type restrictions  
peterw


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-08-05 01:29 PM

Thanks Jeff & Christian!

"Jeff Fink" wrote:

>
> "peterw" <peterw@discussions.microsoft.com> wrote in message
> news:CAAB5488-612D-4517-ADF5-12F593B19F5E@microsoft.com... 
> webfolders 
>
> In general, putting a filter on the upload mechanism will not solve your
> problem.  The user can just find something that is permitted (ASP for
> example) and install their own upload mechanism that bypasses your
> protections.
>
> If you're really trying to prevent executables from being run via the web
> site, you can turn off executable permission for all users using NT
> permissions.  I don't have 2003, but in 2000 if you go to the folder's
> security and click Advanced, you can turn off the "Traverse Folder / Execu
te
> File" permission to stop executables from being run.
>
> If you're looking for a solution where you can filter out specific file
> types, you could write an ISAPI filter, catch the SF_NOTIFY_URL_MAP
> notification determine if the file being requested is illegal via your
> policy.  If so, you can change the result to point at a file indicating so
> or return an error.
>
> -Jeff
>
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register