Options

Detect HTTPS traffic

willouttewilloutte Member
Hi,

I'm after a variable that can differentiate httpS traffic from http traffic.
Is this possible with http::host or http::uri?

Thanks,

William
Tagged:

Comments

  • Options
    diederikdiederik Member
    edited March 2017
    http::host or http::uri only work on cleartext (HTTP) so for them to work on HTTPS traffic, you already have the SSL:: commands you can work with.

    Try:

    # as can be found in the 4.1.1-P1 documentation
    when HTTP_REQUEST {
    log "The SSL mode is [SSL::mode]."
    }

    # SSL:mode returns 1 when SSL is used, 2 when there's no SSL used.
Sign In or Register to comment.