Forum Discussion
Marcel_Derksen_
Nimbostratus
Jan 26, 2005Validate Application Requests
Hi,
I want the F5 to validate the application request so it can function as a full L7 proxy. Is there a way to solve this using iRules or is this something that is standard behaviour? So if a look into HTTP when I use the HTTP_REQUEST option is this request checked to see if it is a normal HTTP request before the condition HTTP_REQUEST is met?
Marcel
- unRuleY_95363Historic F5 AccountHi Marcel,
class valid_methods { "GET" "POST" "HEAD" } rule validate_http { when HTTP_REQUEST { if { [HTTP::version] eq "Unknown" } { log "Invalid HTTP version - connection from: [IP::remote_addr]:[TCP::remote_port] rejected" reject } elseif { not [matchclass [HTTP::method] equals $::valid_methods] } { log "Invalid HTTP method [HTTP::method] - connection from: [IP::remote_addr]:[TCP::remote_port] rejected" reject } } }
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