F5 BIG-IP iRule Reject 指定domain

when HTTP_REQUEST {
if { ( [string tolower [HTTP::host]] ends_with "lb.abc.com" ) }
{
reject
}
}

Remark:

一般URL是 https://www.abc.com/abc/abc.php?name=abc&age=18

HTTP::host

www.abc.com

HTTP::path

/abc/abc.php

HTTP::query

name=abc&age=18

HTTP::uri

/abc/abc.php?name=abc&age=18

 

Reference

https://cmdref.net/hardware/bigip/irule_sample.html

發佈留言

*