![]() |
HJB 8/8/2021 |
Sign-in logs in Azure Active Directory I ran through the above URL content and understand, Azure itself logs too and provides options on even "per web application"
Not really knowing whether the content of the above screenshot has any connection with your current issue, it could be or not one |
![]() |
Admin 8/9/2021 |
My guess is that Azure handles PHP and ASP.NET apps differently and PHP apps are routed through a load balancer or a reverse proxy. More info in this article. What you can do is to edit include/audit.php file replacing $_SERVER["REMOTE_ADDR"] with $_SERVER['HTTP_X_FORWARDED_FOR']. Personally I won't recommend this, because $_SERVER['HTTP_X_FORWARDED_FOR'] value is taken from HTTP headers and cannot be fully trusted. For logging purposes it is probably fine but do not use it for any security features like restricting the acccess to your app. |
![]() |
Dalkeith author 8/10/2021 |
Thanks I was pretty sure it was something like that. |
![]() |
Dalkeith author 8/10/2021 |
Just tried it and it worked however I note that every time I rebuild the project it re-writes the audit.php file and so the variable is changed back. Is there a way of permanently changing the audit.php variable for this project so that I don't need to be constantly changing that variable? |