IIS 6.0 Handle dots / periods in URL other than prior to extension?

Posted on 2008-11-06
Last Modified: 2012-05-05
IIS 6.0, not using URLScan. URLs that point to documents that contain dots / periods in their filename fail to load. The same document minus the extra dots / periods, except for the one before the extension, work fine.

I've searched everywhere and not found a solution. URLScan has an option to toggle this, but IIS 6.0 doesn't need it. Plus, I've heard even installing URLScan over IIS 6.0 and enabling dots does NOT help.

IIS is setup to allow Parent Paths.

I've searched the registry and metabase for an appropriate setting to flip. No luck.
Question by:mcouillard
    LVL 1

    Author Comment

    Example of a URL that comes up "not found" despite the exact file existing:

    Example of a URL that works fine:

    I suspect this is related to IIS 6s new method of handling MimeTypes. XLS is a supported MimeType, but the extra dots seem to make IIS think the file isn't an XLS.
    LVL 37

    Assisted Solution


    I don't think that it is IIS doing this since I cannot repeat the problem on my own IIS 6 platform.

    What is the error message received when you try to access those scripts?

    LVL 1

    Author Comment

    Good thought, meverest! Unfortunately I removed the only possibly offending line in my ISAPI REWRITE configuration and it failed to make a difference.

    The exact error in Firefox is "Page Load Error" followed by "File not found". IE attempts to load the file but it's always 187 bytes and ends up being an error message.

    Here's another, more real-life example of the URL that fails with extra dots:

    (Yes, I've tried both with and without SSL - same result)
    LVL 37

    Expert Comment


    are you sure that it isn't the whitespaces causing the problem?  What does the web site log reckon the missing file is?

    LVL 1

    Accepted Solution

    Turns out it was faulty character encoding. An ASP function fixed the URL enough to make it workable in a browser.

    Function URLFileNameFix2(str)
            URLHolder =(Server.URLEncode(TRIM(str)))
          URLHolder = Replace(URLHolder,"%2F", "/")
          URLHolder = Replace(UrlHolder,"+", "%20")
          URlHolder = Replace(URLHolder,"%2E",".")
          URLHolder = Replace(UrlHolder,"%5C","\")
          URLHolder = Replace(URLHolder,"%5F","_")
          URLHolder = Replace(URLHolder,"%5B","[")
          URLHolder = Replace(URLHolder,"%5D","]")
          URLHolder = Replace(URLHolder,"%3F","?")
          URLHolder = Replace(URLHolder,"%3D","=")
          URLHolder = Replace(URLHolder,"%2D","-")
          URLHolder = Replace(URLHolder,"%20"," ")
          URLFileNameFix2 = URLHolder
    end Function

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
    Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now