Restore real IP - IIS10

Hi, I would appreciate if someone could be so kind as to explain how to restrict access to a site from within IIS. I was able to do this easily on nginx with the REALIP taggs. I followed the guide to install the dll module present on the Cloudflare site but this did not work and broke plesk.

Basically what I am trying to do is pass on the real ip of the connecting user to IIS for 403 purposes

https://support.cloudflare.com/hc/en-us/articles/200170666-How-do-I-correct-visitor-IP-with-Microsoft-IIS-

From what I understand you dont even need any DLL, that is supported out-of-the-box.

Unfortunately I am not interested in just logging but restoring the IP at an application level.

Then you’ll need to modify the application to read the visitor IP from the first value in the x-forwarded for header.



1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.