Forum Discussion
Rafish_129330
Nimbostratus
May 22, 2018help with irule
Hi,
I need to write irule that
1. drop connection to uri that contain "wp-admin" "login" "mydb" from specific ip address
2. allow access to uri that contain "admin-ajax.php"
This is the ir...
youssef1
Cumulonimbus
May 22, 2018Hi,
you can begin with this irule then let me now if you need some update:
when HTTP_REQUEST {
if { !([IP::client_addr] equals "10.0.0.8" ) } {
if { ([string tolower [HTTP::uri]] contains "admin" || [string tolower [HTTP::uri]] contains "login") && !([string tolower [HTTP::uri]] contains "admin-ajax.php") } {
drop
}
}
}
Of course change "10.0.0.8" by your IP.
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