In the IIS logs, there is a field called "sc-status" which would show 200 for a successful response, and 401.x if the user is unauthorized.
How to detect IIS requests by logged in users only?
-
15-07-2023 - |
سؤال
I'm planning to get some information by processing IIS Log files (after I imported them into SQL Server database).
Now, when user requests for a file that exists on server, even with incorrect credentials, two things happen:
This request is rejected
This bad request is logged, and I cannot detect whether the user has received the file, or not?
I want to process only requests with correct credentials that are responsed without error.
I use Windows authentication mode.
المحلول
لا تنتمي إلى StackOverflow