question

MartinStabrey-9736 avatar image
0 Votes"
MartinStabrey-9736 asked SamWu-MSFT commented

<ipSecurity> issue?

We restrict access to a folder in our web using <ipSecurity allowUnlisted="false"> in our web.config file.

Code portion:

<location path="unicol">
<system.webServer>
<security>
<ipSecurity allowUnlisted="false">
<clear />
<add ipAddress="xxx.xxx.xxx.xxx" allowed="true" />
</ipSecurity>
</security>
</system.webServer>
</location>


Up until 8 days ago it all worked fine, at which point whenever someone tries to access the restricted folder we receive the message "The page cannot be displayed because an internal server error has occurred."

We have tested and the when we remove

     <ipSecurity allowUnlisted="false">
       <clear />
       <add ipAddress="xxx.xxx.xxx.xxx" allowed="true" />
     </ipSecurity>

from the web.config, there are no errors - but of course there is also no access restriction.

No updates were made to the web.config prior to the errors, so my assumption is that a server setting may have changed? Is my assumption correct? If so, what might be causing this?

Thanks,
Mart


windows-server-iis-generaldotnet-standard
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MartinStabrey-9736 According to your description, I couldn’t understand your requirement clearly. when you set ipSecurity, there will be an access restriction error. When you remove ipSecurity, the access restriction is cancelled. Is there any problem? or did you set the <clear> element, but it didn't work?

0 Votes 0 ·

0 Answers