Forum Discussion
vikas_goel_1813
Nimbostratus
May 09, 2018How to block embedded IP in http header
I have virtual server which is getting lot of traffic from malicious IP. We are doing X-forwarder on that virtual server. IP is embedded into http header . I need to block embedded IP and continue se...
Kevin_Davies
Nacreous
May 09, 2018If the original IP address is not on the client side then try this.
when HTTP_REQUEST {
if {[HTTP::header X-MS-Forwarded-Client-IP] starts_with "113.61.46.130" }
drop
}
}
If that works then build your iRule out from that logic. If you need the first field use getfield and comma as a delimiter.
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