1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Is it possible to check for https or not within a XenForo template?

Discussion in 'Styling and Customization Questions' started by Warchamp7, May 6, 2016.

  1. Warchamp7

    Warchamp7 Active Member

    As the title said, there are requests I don't want to make if the page is being served over https, so is there a variable I can check?
  2. Chris D

    Chris D XenForo Developer Staff Member


    <xen:if is="{$requestPaths.protocol} == 'https'">
    // Secure
    <xen:else />
    // Not secure
    Warchamp7 and eva2000 like this.

Share This Page