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

Applies To:

Show Versions Show Versions


  • 17.1.0, 17.0.0, 16.1.4, 16.1.3, 16.1.2, 16.1.1, 16.1.0, 15.1.10, 15.1.9
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
  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
    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
    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 { == false}
    , and click
  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,
    , and select the red color, then click
  14. On the IP Not Blocked branch you created earlier in the subroutine, click the
  15. Select the success terminal, for example,
    , and click
  16. Click
check blocklist subroutine