Patch for Dynamic IP Restrictions for IIS 7 - Beta

Dynamic IP Restrictions (DIPR) was created to give users a tool to help mitigate the effects of DOS attacks and certain brute-force password breaking attempts. The Out-Of-Band (OOB) feature description is (perhaps more elegantly) outlined on this page: In short, it is a handy tool that is easy to configure to protect a site/server from certain attacks.

A bug was discovered in the Beta for Microsoft Dynamic IP Restrictions for IIS 7 for which a patch has been released. The bug affects users with site names longer than 22 characters. Installing the feature with a long site name and browsing to that site would result in a distinctive error in the Windows Application logs.


To check whether your version of DIPR beta contains this update, check the Registry. If the value for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\DynIpRst\Version is 7.1.0394.0, then the installed DIPR is not updated. This value should be 7.1.0487.0 for the updated version. The fix for the DIPR beta is being distributed in 2 ways: an updated installer (.msi) for a new install and a patch (.msp) for existing installs. These are available through WebPI (the Web Platform Installer) and are also posted on Microsoft Download Center (DLC) and (see links included below for where to get the update).

If you do not already have WebPI, I highly recommend trying it out – you can get it here: WebPI is a tool that makes it easy to see available new products or even Web applications and streamlines their installation (including any product dependencies). When you launch WebPI, it will start on the “What’s New?” page. You will either see the update patch in the “Updates” section of WebPI:


Or the full product install will be shown in the “Web Platform Beta Extensions” section:


To manually get the patch or update an existing DIPR beta install, the appropriate .msi or .msp file may be downloaded directly from the Download Center (see section, below, for links to Download Center pages). Run the file, and the installer will guide you through the installation steps. For the full install you may be required to stop WMSvc and WAS (from a command line do a net stop wmsvc and net stop was) prior to installing, such as if you have IP Security installed. Note that the patch install may require you to restart your computer. This may be post-poned to a time of your choosing, but the update may not be effective until after a restart.

Where can I download the updated Dynamic IP Restrictions for IIS 7 – Beta or the patch?

Use WebPI

Go to Microsoft Download Center

x86 full install:

x64 full install:

x86 patch:

x64 patch:

Go to

x86 full install (patch link in page):

x64 full install (patch link in page):

Tips for a better experience

  • Make sure you have the download for the correct architecture and type (x86 or x64, full install or patch)
  • Back-up your configuration
    • Such as by saving a copy of applicationHost.config and administrationHost.config prior to install
  • Stop WAS and WMSvc before starting the installation (you will have to restart these services after product is installed)
    • net stop was
    • net stop wmsvc

Why does the install wizard ask to uninstall IP Security?

Installing DIPR beta using the (.msi) wizard will require you to uninstall the IP Security feature if it is installed. It is possible for both features to be installed at the same time, but this does have a performance impact, and it is recommended that only one of the 2 features be installed for this reason. WebPI will not uninstall IP Security when installing DIPR beta because it cannot verify the action with the user, and DIPR beta will not remove an installed feature without the user “OK”. IP Security may be removed after installing DIPR beta, but the IP restriction configuration and settings will be lost, so be conscious of this action.

Do I have to restart my computer?

The patch install may require you to restart your computer whether using WebPI or the .msp directly. If this is inconvenient, the restart may be postponed, but the update may not be effective until after a restart. Recycling WAS or doing an iisreset /restart may have a similar effect. Even if the patch is “actively working,” WebPI will not continue to install other features until after the restart has been completed.

No Comments