Forum Discussion
Dayton_Gray_103
Nimbostratus
Oct 18, 2006Limiting connections base on user-agent and URI
I am wondering if anyone has an examples or can point me in the right direction as to how I would go about limiting connections based on the HTTP::header User-Agent and based on HTTP::uri. I'm basical...
hoolio
Cirrostratus
Oct 31, 2007I'm not sure which versions ever allowed you to access HTTP headers from the CLIENT_ACCEPTED event. In current versions, the HTTP headers haven't been parsed in the CLIENT_ACCEPTED event, so you get an error stating that the HTTP::header command is invalid in that context. If you changed the CLIENT_ACCEPTED event to HTTP_REQUEST and CLIENT_CLOSED to HTTP_RESPONSE, you'd get per HTTP request throttling, instead of per-TCP connection throttling.
Can you give that a shot?
Aaron
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