Forum Discussion
Mike_Graston_10
Nimbostratus
Mar 13, 2007401 response with message and logging
I have a scenerio where I am not sure on how to do this. I would like to filter a uri that contains the string /abc. Any ip address that hits it I would like to log and send back a 401 Unauthorized pa...
Mike_Graston_10
Nimbostratus
Mar 13, 2007OK, not quite there yet,
1. no loging is happening to the /var/log/ltm file?
2. I need to attempt to login, i tried a coule different reponse codes? looks ugly!
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/abc"} {
log local0. "Client IP is [IP::client_addr]"
HTTP::respond 401 content "Apology PageThis
is an unauthorized destination from your current location.Your IP address has been logged>"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
