Forum Discussion
kamiel_48996
Nimbostratus
Nov 11, 2009limit the possibility of doing POST's
I want to limit the possibility of doing http POSTs to a set of know machines. All public machines must be able to do get's on the same HTTP server.
irules are new to me so some help will be appiciated
if {[HTTP::method] eq "POST"}
if NOT { check is server is known (on IP/name) }
{
log event
reject request
}
Can someone help me get started ?
thanks
K
- hoolio
Cirrostratus
You can add the client or server IP addresses to a datagroup (class) of type 'address' and then use the matchclass command to evaluate the address against the class. The matchclass wiki page has examples:
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