Forum Discussion
tororoy76_17327
Nimbostratus
Jul 27, 2015need help! block requests when ( /administrator and not philippine ip address and not abc.com.ph)
i dont know if this is correct, but here is my irule
when HTTP_REQUEST { if { (!([HTTP::host] contains "abc.com.ph")) and ([HTTP::uri] starts_with "/administrator") and (!([whereis [IP::client_addr]] contains "Philippines")) } { drop } }
Can you suggest a better way to do it? thanks!
2 Replies
- Samir_Jha_52506
Noctilucent
I don't see any issue in iRule. - tororoy76_17327
Nimbostratus
I tested it and i can't connect to abc.com.ph/administrator using outside of the philippines connection. Maybe there's an error in my composition?
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