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

Comments

No comments yet. Why don’t you start the discussion?

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*