Forum Discussion
Gurdip_Sira_172
Nimbostratus
Aug 14, 2016Help needed with an iRule to return 401 for sites
Hi,
I am working on an iRule that I would like to loop through a data group list and for each url in the site, return a 401 error for everyone bar one machine, who's IP I have in the condition (the...
Stanislas_Piro2
Cumulonimbus
Aug 15, 2016Hi,
- client_ip is the client IP
- remote_ip is client IP in clientside events (HTTP_request is a clientside event), and server IP in server side events
Why do you respond with 401 code which is the authentication response code.
if you want authentication, you must reply with the following parameters:
HTTP::respond 401 noserver WWW-Authenticate "Basic realm=\"Your authentication realm\""
if you want HTTP redirect (with location header), the response code is 302 (temporary redirect) or 301 (persistent redirect)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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