1. In the IIS window, select the SecureAuth IdP realm from the tree view pane
2. On the target pane, double-click the URL Rewrite icon
Panel
borderColor
#126591
bgColor
white
titleColor
white
titleBGColor
#126591
title
URL Rewrite
Section
Column
width
50%
Image Modified
Column
width
50%
3. On the URL Rewrite pane, on the Actions section in the upper right corner, click Add Rule(s) to create the first rule (i.e. to allow internal access to remain on this realm)
Panel
borderColor
#3e7fa0
bgColor
white
titleColor
white
titleBGColor
#3e7fa0
title
Add Rule(s)
Section
Column
width
50%
Column
width
50%
4. On the Add Rule(s) dialog, select Request blocking and click OK
Panel
borderColor
#049ed9
bgColor
white
titleColor
white
titleBGColor
#049ed9
title
Add Request Blocking Rule
Section
Column
width
50%
Image Modified
Column
width
50%
5. On the Add Request Blocking Rule dialog, select User-agent Header from the Block access based on dropdown
6. Select Matches the Pattern from the Block request that dropdown
7. Enter the Pattern (User-agent Header) using the format midp|mobile|phone|android|iphone|ipad – note each word in the pattern is separated by a pipe character ( | ) without any spaces
8. Select Regular Expressions from the Using dropdown
9. Select Send an HTTP 403 (Forbidden Response) from the How to block dropdown
10. Click OK
Panel
borderColor
#126591
bgColor
white
titleColor
white
titleBGColor
#126591
title
Edit Inbound Rule
Section
Column
width
50%
Column
width
50%
11. Double-click the newly created rule to edit the settings for that rule
12. On the Edit Inbound Rule pane, select Redirect from the Action type dropdown
13. On the Actions section in the upper right corner, click Apply
The newly configured mobile redirect rule can be renamed to a more descriptive name such as "MobileRedirectRule"
Panel
borderColor
#145570
bgColor
white
titleColor
white
titleBGColor
#145570
title
Sample Web.Config Section for a Successful Configuration