Using IIS 7 URL rewrite rules to block the public "access" to SharePoint "_layouts" pages
When you use MS SharePoint 2007 / 2010 site as a Internet public facing site, it's smart and safe to block the anonymous access to back-end "_layouts" pages.
It's easy to use IIS 7 URL rewrite rules to perform the access blocking.
Below is the sample rule.
<rule name="_layouts" stopProcessing="true">
<match url="^_layouts($|/.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^pub\.stag\.moevenpick-icecream\.com$" />
<add input="{HTTP_HOST}" pattern="^pub\.prod\.moevenpick-icecream\.com$" />
<add input="{HTTP_HOST}" pattern="^www\.moevenpick-icecream\.com$" />
</conditions>
<action type="None" />
</rule>
If you want to black the access to "_layouts/login.aspx" page, then use this rule:
<rule name="Disable SharePoint login.aspx Page" enabled="false" stopProcessing="true">
<match url="^(.*|/)Login.aspx.*$" />
<action type="AbortRequest" />
</rule>
For more SharePoint 2013 Administration tips, see below book.
It's easy to use IIS 7 URL rewrite rules to perform the access blocking.
Below is the sample rule.
<rule name="_layouts" stopProcessing="true">
<match url="^_layouts($|/.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^pub\.stag\.moevenpick-icecream\.com$" />
<add input="{HTTP_HOST}" pattern="^pub\.prod\.moevenpick-icecream\.com$" />
<add input="{HTTP_HOST}" pattern="^www\.moevenpick-icecream\.com$" />
</conditions>
<action type="None" />
</rule>
If you want to black the access to "_layouts/login.aspx" page, then use this rule:
<rule name="Disable SharePoint login.aspx Page" enabled="false" stopProcessing="true">
<match url="^(.*|/)Login.aspx.*$" />
<action type="AbortRequest" />
</rule>
For more SharePoint 2013 Administration tips, see below book.
Comments
Post a Comment