Get Support

Can Disqus be loaded via HTTPS?

Note: This document applies only to Disqus installations before March 6, 2013. Starting on March 6, 2013, the universal code was updated to automatically load in either HTTP or HTTPS.

Yes, Disqus supports HTTPS. By default, however, Disqus is loaded via HTTP. Disqus can be loaded via HTTPS (HTTP with the SSL protocol) by simply changing the http prefix to //. This is known as a protocol-relative URL.

For example, the relevant line of code in the universal embed code would be changed to:

dsq.src = '//' + disqus_shortname + '';

And likewise the relevant line in the universal comment count code would be changed to:

s.src = '//' + disqus_shortname + '';

These changes can similarly be applied to any of our plugins.

Note: These changes may take up to 24 hours to take full effect.


Disqus still isn't loading via HTTPS

The most common reason Disqus will not load via HTTPS (after waiting 24 hours) is that Disqus is still being loaded via HTTP somewhere on your site. If you require Disqus to still load via HTTP sometimes, HTTPS can be manually forced by appending the ?https query parameter. Continuing the above example, this would look like:

dsq.src = '//' + disqus_shortname + '';

Did you find this article helpful?