Manual Chapter : Adding an HTTP Connector to a subroutine to check an external blocklist

Applies To:

Show Versions Show Versions

BIG-IP APM

  • 16.0.1, 16.0.0
Manual Chapter

Adding an HTTP Connector to a subroutine to check an external blocklist

You should have created a per-request policy before you complete this task.
Add the HTTP Connector item to the Check Blocklist subroutine you created to check data against an external HTTP server. In this example, you verify that an IP address is not included on an external IP blocklist.
  1. Expand the subroutine by clicking the [
    +
    ] icon.
    The subroutine displays.
  2. Click the
    (+)
    icon anywhere in the subroutine to add a new item.
  3. Click the
    General Purpose
    tab.
  4. Select the
    HTTP Connector
    item, and click
    Add Item
    .
  5. From
    HTTP Connector Request
    , select the HTTP connector request you configured previously.
  6. Click the Branch Rules tab.
    The Branch Rules screen opens.
  7. Change the name of the default
    Successful
    rule.
    In this case, the expression will detect that the IP addrress is not on a blocklist, so you could name this rule
    IP Not Blocked
    , for example.
  8. Click the
    change
    link in the Expression area.
    A popup screen opens.
  9. Click the Advanced tab.
    Use this tab to enter Tcl expressions.
    A text input field displays.
  10. In the field, type
    expr {[mcget {subsession.http_connector.body.is-listed == false}
    , and click
    Finished
    .
  11. Click
    Edit Terminals
    .
    A popup screen opens.
  12. Click
    Add Terminal
    .
    A new terminal line appears.
  13. Type the name for the new terminal, for example,
    Fail
    , and select the red color, then click
    Save
    .
  14. On the IP Not Blocked branch you created earlier in the subroutine, click the
    Out
    terminal.
  15. Select the success terminal, for example,
    Success
    , and click
    Save
    .
  16. Click
    Save
    .
check blocklist subroutine