Forum Discussion
Block URI based on Source IPs
Dear Team, i need to block the following URI for all internet users but needs to allow for some LAN users based on ip address following are the URIs that i need to block
for testing pupose i have created a below i rule but this i rule is not working fine
when HTTP_REQUEST { log local0. "Path = [string tolower [HTTP::path]]" log local0. "Client IP = [IP::client_addr]" if { [string tolower [HTTP::path]] contains "MyHiddenLoginPage.aspx" } { if { !([IP::addr [IP::client_addr] equals 10.0.0.8]) } { discard log local0. " Just discarded a request! "} else { log local0. "Just processed a request!" } } }
5 Replies
Recent Discussions
Related Content
* 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