Restore real IP - IIS10


#1

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


#2

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


#3

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


#4

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