I deleted 150k+ spam bot registered users. I set Registration to None. No more new users = good.
Tons of errors in the log = bad. I'm truncating it nightly.
I'd like a way to redirect attempts to load UserProfile. (Because bots are loading the urls for non-existent users' profiles, causing errors).
I found the article below and made the following unsuccessful attempts below.
Any suggestions on how to get this working, or a different approach to take?
<rewrite>
<rules>
<rule name="Fail bad requests">
<match url="UserProfile/tabid/([0-9]+)/userId/([0-9]+)/Default.aspx"/>
<conditions>
<add input="{HTTP_HOST}" pattern="UserProfile/tabid/{R:1}/userId/{R:2}/Default.aspx" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect from User Profile">
<match url="^UserProfile/tabid/([0-9]+)/userId/([0-9]+)/Default.aspx" />
<action type="Redirect" url="/Default.aspx" redirectType="Found" />
</rule>
<rule name="User Profile Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="UserProfile/tabid/{R:1}/userId/{R:2}/Default.aspx" />
</conditions>
<action type="Redirect" url="http://www.somesite.com/" />
</rule>
</rules>
</rewrite>
https://support.managed.com/kb/a616/how-to-redirect-an-old-url-to-another-page-on-your-site.aspx